Just save it to zip2tar and make it executable or save it to zip2tar.py and run python zip2tar.py. Output_file_name = os.path.splitext(input_file_name) + '.tar.bz2' Tar_info.mtime = time.mktime(list(zip_info.date_time) + Tar_info = tarfile.TarInfo(name=zip_info.filename) #print zip_info.filename, zip_info.file_size I don't know of any "standard" utility that does so, but when I needed this functionality I wrote the following Python script to go from ZIP to Bzip2 compressed tar archives without extracting anything to disk first: #! /usr/bin/env python ![]() This is now available as installable command from PyPI, see the end of this post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |