can tarfile maintain directory structure?

François Pinard pinard at iro.umontreal.ca
Tue Aug 17 20:10:56 EDT 2004


[Jay Donnell]

> Simply doing os.system('tar -czvf ' + fileName +'.tar.gz ' +
> directory) works great on linux, but I need this script to work on
> windows as well :(

GNU tar, and surely others, have been ported to Windows.  Check within
the DJGPP and Cygwin projects.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



More information about the Python-list mailing list