[GH-ISSUE #234] [Bug report] Current directory appears in the search result with blank name if searched keyword matches its name #120

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

Originally created by @TransparentLC on GitHub (Jun 14, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/234

Problem

If the searched keyword matches the current directory name, the current directory will appear in the search result but the name will be blank.

Log

$ dufs --allow-search .
Listening on http://127.0.0.1:5000/

$ curl "http://127.0.0.1:5000/node_modules/vue-router/?q=vue&simple"
/
dist/vue-router.cjs
dist/vue-router.cjs.js
dist/vue-router.cjs.prod.js
...

$ curl "http://127.0.0.1:5000/node_modules/vue-router/?q=router&json" | jq .paths[0]
{
  "path_type": "SymlinkDir",
  "name": "",
  "mtime": 1686497914955,
  "size": null
}

Environment:

  • Dufs version: 0.34.2
  • Browser/Webdav Info: Firefox 114
  • OS Info: Windows 11
Originally created by @TransparentLC on GitHub (Jun 14, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/234 **Problem** If the searched keyword matches the current directory name, the current directory will appear in the search result but the name will be blank. ![](https://github.com/sigoden/dufs/assets/47057319/85187298-879c-4082-82d7-7d5a6b9c98de) **Log** ``` $ dufs --allow-search . Listening on http://127.0.0.1:5000/ $ curl "http://127.0.0.1:5000/node_modules/vue-router/?q=vue&simple" / dist/vue-router.cjs dist/vue-router.cjs.js dist/vue-router.cjs.prod.js ... $ curl "http://127.0.0.1:5000/node_modules/vue-router/?q=router&json" | jq .paths[0] { "path_type": "SymlinkDir", "name": "", "mtime": 1686497914955, "size": null } ``` **Environment:** - Dufs version: 0.34.2 - Browser/Webdav Info: Firefox 114 - OS Info: Windows 11
zhus closed this issue 2026-04-08 16:50:27 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#120