docs: def _get_archive_tmp_dir(filename):
      """Get the name of the working dir to use for this filename."""
      head, tail = os.path.split(filename)
      return os.path.join(head, _ARCHIVE_TMP_DIR_TEMPLATE.format(tail))