can tarfile maintain directory structure?

Jay Donnell jaydonnell at yahoo.com
Wed Aug 18 21:02:33 EDT 2004


> > import tarfile
> > 
> > tar = tarfile.open(filename, "w:gz")
> > tar.add(directory)
> > tar.close()

This works perfectly on linux, but it wasn't working for me on windows
yesterday. I'll try it again the next time I'm on windows.



More information about the Python-list mailing list