[PR #532] [CLOSED] Regex support in addition to glob masks #634

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

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/532
Author: @zhus
Created: 1/24/2025
Status: Closed

Base: mainHead: regex


📝 Commits (3)

  • 11533e8 hidin full system paths by regex
  • 95e902c args process add hidden-path
  • b3ee36d hidden-path sample update

📊 Changes

4 files changed (+60 additions, -6 deletions)

View changed files

📝 Cargo.toml (+1 -0)
📝 src/args.rs (+24 -1)
📝 src/server.rs (+27 -5)
📝 src/utils.rs (+8 -0)

📄 Description

Hi! We discussed last time that you can't break compatibility with existing configurations. I completely agree with this and prepared a patch that adds regular expression filters in addition to glob mask filters. Using regular expressions it is easy to implement, for example, a hidden root folder or a hidden folder anywhere in the file system, etc. I don't know if this proposal will be accepted in your project, but on my server it works exactly like this :))


🔄 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/532 **Author:** [@zhus](https://github.com/zhus) **Created:** 1/24/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `regex` --- ### 📝 Commits (3) - [`11533e8`](https://github.com/sigoden/dufs/commit/11533e86a9360554fcc1639b1dec6a7069d0f842) hidin full system paths by regex - [`95e902c`](https://github.com/sigoden/dufs/commit/95e902cad5b59a7d1951eddc99f07b5bc779e50e) args process add hidden-path - [`b3ee36d`](https://github.com/sigoden/dufs/commit/b3ee36dfb2e48017affb30b458251cfa1088620f) hidden-path sample update ### 📊 Changes **4 files changed** (+60 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+1 -0) 📝 `src/args.rs` (+24 -1) 📝 `src/server.rs` (+27 -5) 📝 `src/utils.rs` (+8 -0) </details> ### 📄 Description Hi! We discussed last time that you can't break compatibility with existing configurations. I completely agree with this and prepared a patch that adds regular expression filters in addition to glob mask filters. Using regular expressions it is easy to implement, for example, a hidden root folder or a hidden folder anywhere in the file system, etc. I don't know if this proposal will be accepted in your project, but on my server it works exactly like this :)) --- <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:45 +03:00
zhus closed this issue 2026-04-08 16:53:45 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#634