|
@@ -20,9 +20,8 @@ def compress_file_tar(file_path, output_filename):
|
|
|
if not output_filename.endswith('.tar.gz'):
|
|
|
output_filename += '.tar.gz'
|
|
|
|
|
|
- with tarfile.open(output_filename, "w:gz") as tar:
|
|
|
+ with tarfile.open(output_filename, "w:gz", format=tarfile.GNU_FORMAT) as tar:
|
|
|
|
|
|
- tar.format = tarfile.GNU_FORMAT
|
|
|
tar.add(file_path, arcname=file_path)
|
|
|
|
|
|
def compress_tar(folder_path, output_filename):
|