Python ZipFile Path Separators

If I unzip a Zip file using the Python ZipFile library, where the file was created on Windows, but my code runs on Unix-like, will path separators always be Unix-style?

+5
source share
1 answer

Internally, ZipFile stores the slash as required by the zip file .

Outwardly, they are converted using os.sep to match what is normally expected on this platform.

Code References:

+14
source

All Articles