Romeo 13 Posted November 24, 2018 Report Share Posted November 24, 2018 *****Zip***** run python("import shutil import os os.chdir(\'D:/\') shutil.make_archive(\'test\', \'zip\', \'folder-or-file-you-want-to-zip\')") *****UNZIP***** run python("import zipfile with zipfile.ZipFile(\"D:/test.zip\",\"r\") as zip_ref: zip_ref.extractall(\"D:/test\")") 2 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 24, 2018 Report Share Posted November 24, 2018 also supported formats zip: ZIP file (if the zlib module or external zip executable is available).tar: uncompressed tar file.gztar: gzip’ed tar-file (if the zlib module is available).bztar: bzip2’ed tar-file (if the bz2 module is available). 2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.