mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #101] bug反馈,当分享目标是单个文件的时候,--path-prefix参数失去作用 #45
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 @vip3344 on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/101
bug反馈,当分享目标是单个文件的时候,--path-prefix参数失去作用。
举例说明:dufs.exe -p 80 --path-prefix 001 f:\dir123\123.mp4
此时http://127.0.0.1:80/001/ 和 http://127.0.0.1:80/ 均可访问到123.mp4文件
若分享目标是文件夹的时候,一切正常。
另,建议提供--random-route参数,随机生成字符串
@sigoden commented on GitHub (Jul 8, 2022):
不明白为什么单个文件还需要路由?
@sigoden commented on GitHub (Jul 8, 2022):
不会提供 --random-route,没有必要,如果一定要随机,你可以这样
dufs --path-prefix r$RANDOM@vip3344 commented on GitHub (Jul 8, 2022):
比如说,不想让直接访问根路径,只访问特定的路由
@sigoden commented on GitHub (Jul 8, 2022):
也行。稍后会让
--path-prefix也作用于单个文件