flpq_data.tools.unpack_single_dir#

unpack_single_dir(path: Path, dest: Path) → Path[source]#

Unpack path (a .tar.gz) into dest and return its single top-level directory.

Raises:
ValueError

If the archive does not contain a single top-level directory.