mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #576] Incorrect Path Separators in ZIP Archives Generated on Windows #341
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cppbear on GitHub (Apr 18, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/576
Problem
When serving files through dufs on Windows platforms, downloading a folder with multi-level directory structure as a ZIP archive results in incorrect path separators in filenames. The ZIP files generated use backslashes
\instead of the forward slashes/required by the ZIP specification (section 4.4.17).This deviation from the standard may also be the cause of the issue reported in #227.
Steps to reproduce:
Expected behavior:
All directory separators in ZIP entries should use forward slashes
/Actual behavior:
Directory separators appear as backslashes
\Configuration
Log
Screenshots/Media
The directory structure is:
The ZIP file: test.zip
Environment Information