Jack Jansen wrote:
Jack Jansen asks:
Is it possible nowadays to have two files with the same name but different paths (i.e. foo/bar.py and foo/spam/bar.py) in the same archive?
Depends on how you do it.
Apparently I mis-phrased my question, I'll try again.
When people suggested to use zip format as the standard Python archive format I was a bit worried, becuase I've had it happen to me various times that I was unable to create a ZIP archive with two files with the same name but different paths (i.e. create an archive of a directory that contains both a foo/bar.py and a foo/spam/bar.py).
So, my question was: has this happened to me because the winzip I used was braindead, or is there possibly a problem with the ZIP file format that disallows two files with the same name in one archive? Most zip programs I've seen also seem to present filenames as the primary metaphore, with full pathnames somewhat "tacked on".
If the latter is the case I wonder whether zip is the right format to use...
Hmm, I've been doing the above for years now... never had a problem with it (I use Info-ZIPs tools, BTW), e.g. /home/lemburg> unzip -l projects/distribution/mxODBC-1.1.1.zip Archive: projects/distribution/mxODBC-1.1.1.zip Length Date Time Name -------- ---- ---- ---- 131316 06-09-99 14:10 ODBC/EasySoft/mxODBC.c 131316 06-09-99 14:10 ODBC/Informix/mxODBC.c ... Would be cool if I could use my packages as ZIP files :-) So here's another vote for using the ZIP format. BTW, wouldn't it make sense to include the zlib code in the core distribution much like the pcre stuff is now ? AFAIK, it is public domain and including it would remedy many of the compatibility issues with the different zlib versions around. Ok, that was my wish for Xmas :-) The rest is up to Mr. Clause... -- Marc-Andre Lemburg ______________________________________________________________________ Y2000: 21 days left Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/