Horje
python tar a directory Code Example
python tar a directory
import tarfile
import os.path

def make_tarfile(output_filename, source_dir):
    with tarfile.open(output_filename, "w:gz") as tar:
        tar.add(source_dir, arcname=os.path.basename(source_dir))




Python

Related
write page source to text file python Code Example write page source to text file python Code Example
how to split image dataset into training and test set keras Code Example how to split image dataset into training and test set keras Code Example
terminal from python Code Example terminal from python Code Example
compress tarfile python Code Example compress tarfile python Code Example
python csv to list Code Example python csv to list Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7