dcase_util.containers.PackageMixin.extract

PackageMixin.extract(target_path=None, overwrite=False, omit_first_level=False)[source]

Extract the package. Supports Zip and Tar packages.

Parameters
target_pathstr

Path to extract the package content. If none given, package is extracted in the same path than package. Default value None

overwritebool

Overwrite existing files. Default value False

omit_first_levelbool

Omit first directory level. Default value True

Returns
self