zipdir#

zipdir(dir: str, zip_path: str)[source]#

Save a zip file with contents of directory.

Contents of directory will be at root of zip file.

Parameters:
  • dir (str) – directory to zip

  • zip_path (str) – path to zip file to create