unzip#

unzip(filename=None, outfolder='.', folder=None, members=None)[source]#

Convenience function for reading a zip file

Parameters:
  • filename (str/path) – the name of the zip file to write to

  • outfolder (str/path) – the path location to extract the files to (default: current folder)

  • folder (str) – optional additional folder for the filename

  • members (list) – optional list of members

Returns:

list of the names of the unzipped files

Example:

sc.unzip('my-files.zip', outfolder='my_data') # extracts all files
New in version 3.0.0 (equivalent to sc.loadzip(…, extract=True) previously)