Message261987
I don't think this is a bug. The ZIP format specification requires the use of forward slashes[0]:
4.4.17 file name: (Variable)
4.4.17.1 The name of the file, with optional relative path.
The path stored MUST not contain a drive or
device letter, or a leading slash. All slashes
MUST be forward slashes '/' as opposed to
backwards slashes '\' for compatibility with Amiga
and UNIX file systems etc.
os.path.join() will use different path separators depending on the system. If you don't want to hardcode the slashes in a string literal, you can simply use '/'.join(...) instead of os.path.join().
[0]: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT |
|
Date |
User |
Action |
Args |
2016-03-18 18:59:15 | ezio.melotti | set | recipients:
+ ezio.melotti, twouters, alanmcintyre, serhiy.storchaka, 張伯誠 |
2016-03-18 18:59:15 | ezio.melotti | set | messageid: <1458327555.05.0.187280421395.issue26283@psf.upfronthosting.co.za> |
2016-03-18 18:59:14 | ezio.melotti | link | issue26283 messages |
2016-03-18 18:59:14 | ezio.melotti | create | |
|