Skip to main content

extract

Unpack the tar or zip file at the specified path to the directory specified by to_path.

def extract(
path: string,
to_path: string
)

Unpack the tar or zip file at the specified path to the directory specified by to_path.

Parameters

NameTypeDescription
pathstringThe filesystem path to the tar or zip archive that needs to be unpacked.
to_pathstringThe destination directory path where the archive contents will be extracted.

Returns

TypeDescription
Nothing is returned; the archive contents are extracted to the filesystem.