|
@@ -22,7 +22,7 @@ def compress_file_tar(file_path, output_filename):
|
|
|
|
|
|
with tarfile.open(output_filename, "w:gz", format=tarfile.GNU_FORMAT) as tar:
|
|
|
|
|
|
- tar.add(file_path, arcname=file_path, owner=None, group=None)
|
|
|
+ tar.add(file_path, arcname=os.path.basename(file_path))
|
|
|
|
|
|
def compress_tar(folder_path, output_filename):
|
|
|
|