File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ server [options]
60
60
61
61
-U|--global-upload
62
62
Allow upload files for all url paths.
63
- If filename exists, will try to add or increase numeric suffix.
63
+ If filename exists, will try to remove it first if deleting is enabled(e.g. by --delete),
64
+ otherwise will try to add or increase numeric suffix.
64
65
Use it with care.
65
66
-u|--upload <url-path> ...
66
67
Set url paths(and sub paths) that allows to upload files.
@@ -69,6 +70,20 @@ server [options]
69
70
Similar to --upload, but use file system path instead of url path.
70
71
Use it with care.
71
72
73
+ --global-mkdir
74
+ Allow create sub directory under all url paths.
75
+ --mkdir <url-path> ...
76
+ Allow create sub directory under specific url paths(and sub paths).
77
+ --mkdir-dir <fs-path> ...
78
+ Similar to --mkdir, but use file system path instead of url path.
79
+
80
+ --global-delete
81
+ Allow delete items under all url paths.
82
+ --delete <url-path> ...
83
+ Allow delete items under specific url paths(and sub paths).
84
+ --delete-dir <fs-path> ...
85
+ Similar to --delete, but use file system path instead of url path.
86
+
72
87
-A|--global-archive
73
88
Allow user to download the whole contents of current directory for all url paths.
74
89
A download link will appear on top part of the page.
Original file line number Diff line number Diff line change @@ -59,14 +59,29 @@ server [选项]
59
59
60
60
-U|--global-upload
61
61
对所有URL路径开启上传权限。
62
- 如果文件已存在,则尝试添加或递增数字后缀。
62
+ 如果文件已存在,若已启用删除(例如--delete选项),则尝试先删除文件,
63
+ 否则尝试添加或递增数字后缀。
63
64
请谨慎使用。
64
65
-u|--upload <URL路径> ...
65
66
设置允许上传的URL路径(及子路径)。
66
67
请谨慎使用。
67
68
--upload-dir <文件系统路径> ...
68
69
与--upload类似,但指定的是文件系统路径,而不是URL路径。
69
70
71
+ --global-mkdir
72
+ 对所有URL路径开启创建子目录权限。
73
+ --mkdir <url-path> ...
74
+ 设置允许创建子目录的URL路径(及子路径)。
75
+ --mkdir-dir <fs-path> ...
76
+ 与--mkdir类似,但指定的是文件系统路径,而不是URL路径。
77
+
78
+ --global-delete
79
+ 对所有URL路径开启删除子项权限。
80
+ --delete <url-path> ...
81
+ 设置允许删除子项的URL路径(及子路径)。
82
+ --delete-dir <fs-path> ...
83
+ 与--delete类似,但指定的是文件系统路径,而不是URL路径。
84
+
70
85
-A|--global-archive
71
86
对所有URL路径开启打包下载当前目录内容的功能。
72
87
页面顶部会出现下载链接。
You can’t perform that action at this time.
0 commit comments