[GH-ISSUE #560] Unable to Hide specific folders #331

Closed
opened 2026-04-08 16:52:05 +03:00 by zhus · 1 comment
Owner

Originally created by @danutzzzzz on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/560

Problem

Hi, I'm the root folder '/Share' that I'm using to publish, there are some folders i wish to hide but am unable to do so, only the '*/' works but it hides all folders.

Configuration

serve-path: './Share'
bind: 0.0.0.0
port: 5000
hidden:
  - '/Books'
  - '/Music'
  - '/Photos'
allow-all: false
allow-search: true
allow-symlink: true
enable-cors: true
render-index: true
render-try-index: true
render-spa: true
log-format: '$remote_addr "$request" $status $http_user_agent'
log-file: ./data/dufs.log
compress: low

Log

2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.css" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.js" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/favicon.ico" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
2025-03-23T01:28:27Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0

Screenshots/Media

Environment Information

  • Dufs version: v0.43.0
  • Browser/Webdav info: EDGE / Windows 11 Pro
  • OS info: Debian/Docker
  • Proxy server (if any): N/A
Originally created by @danutzzzzz on GitHub (Mar 23, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/560 **Problem** Hi, I'm the root folder '/Share' that I'm using to publish, there are some folders i wish to hide but am unable to do so, only the '*/' works but it hides all folders. **Configuration** ``` serve-path: './Share' bind: 0.0.0.0 port: 5000 hidden: - '/Books' - '/Music' - '/Photos' allow-all: false allow-search: true allow-symlink: true enable-cors: true render-index: true render-try-index: true render-spa: true log-format: '$remote_addr "$request" $status $http_user_agent' log-file: ./data/dufs.log compress: low ``` **Log** ``` 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.css" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/index.js" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:26Z INFO - 10.0.30.10 "GET /__dufs_v0.43.0__/favicon.ico" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 2025-03-23T01:28:27Z INFO - 10.0.30.10 "GET /" 200 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0 ``` **Screenshots/Media** **Environment Information** - Dufs version: v0.43.0 - Browser/Webdav info: EDGE / Windows 11 Pro - OS info: Debian/Docker - Proxy server (if any): N/A
zhus closed this issue 2026-04-08 16:52:05 +03:00
Author
Owner

@sigoden commented on GitHub (Mar 24, 2025):

In dufs, the hidden should be the file or directory name, not the path.

hidden:
  - 'Books'
  - 'Music'
  - 'Photos'
<!-- gh-comment-id:2746567671 --> @sigoden commented on GitHub (Mar 24, 2025): In dufs, the hidden should be the file or directory name, not the path. ``` hidden: - 'Books' - 'Music' - 'Photos' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#331