can tarfile maintain directory structure?

François Pinard pinard at iro.umontreal.ca
Wed Aug 18 02:10:56 CEST 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