I am using the tarfile package for python.
Tar = tarfile.open("filename.tar.gz" mode='w:gz')
NOTE:
tarfile.open("filename.**TAR.GZ**" mode='w:gz')
is creating two levels of compression. no idea if it is a bug in the package
It is creating "filename.tar.gz"; however, for Unix constraints, we need "filename.**TAR.GZ**"(please note that extension is in uppercase.)
Could you please help me to create filename.TAR.GZ? I can use other packages than tarfile if available for my need.
Is this what you want?
Output
And if I do
lson the working dir, here's what's there: