[PR #577] [MERGED] fix: incorrect separator for zip archive folders under windows #645

Closed
opened 2026-04-08 16:53:48 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/577
Author: @TinyTinni
Created: 4/24/2025
Status: Merged
Merged: 4/25/2025
Merged by: @sigoden

Base: mainHead: windows-zip-directories


📝 Commits (1)

  • 0a6c0ae fix: incorrect seperator for zip archives under windows

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 src/server.rs (+7 -2)

📄 Description

Closes #576

When a zip container is requested, make sure that "\" is converted to "/" under windows.

It will have to effect for linux/mac.

Doc to MAIN_SEPARATOR https://doc.rust-lang.org/std/path/constant.MAIN_SEPARATOR.html


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/577 **Author:** [@TinyTinni](https://github.com/TinyTinni) **Created:** 4/24/2025 **Status:** ✅ Merged **Merged:** 4/25/2025 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `windows-zip-directories` --- ### 📝 Commits (1) - [`0a6c0ae`](https://github.com/sigoden/dufs/commit/0a6c0ae50e746db2e0ceef333ad59bdd27d58251) fix: incorrect seperator for zip archives under windows ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/server.rs` (+7 -2) </details> ### 📄 Description Closes #576 When a zip container is requested, make sure that "\\" is converted to "/" under windows. It will have to effect for linux/mac. Doc to MAIN_SEPARATOR https://doc.rust-lang.org/std/path/constant.MAIN_SEPARATOR.html --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:48 +03:00
zhus closed this issue 2026-04-08 16:53:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#645