The code to compress a folder in to tar file is: ... GZip doesn't do compression of folders/directories, only single files. Use the zipfile module instead.
確定! 回上一頁