Version 1.7.0
Main changes
- Add options for creating directory:
--global-mkdir
,--mkdir
and--mkdir-dir
- Add options for deleting files and directories:
--global-delete
,--delete
and--delete-dir
Extended behavior for upload
If filename exists and is a regular file,
will try to remove it first if deleting is enabled(e.g. by --delete),
otherwise will try to add or increase numeric suffix just like previous version.
Breaking change
File upload url in template changed.
Before:
<directory-path>
After:
<directory-path>?upload
主要变更
- 添加创建子目录的选项:
--global-mkdir
,--mkdir
和--mkdir-dir
- 添加删除文件或目录的选项:
--global-delete
,--delete
和--delete-dir
扩展上传文件的行为
如果名称已存在且是常规文件,
若已启用删除(例如--delete选项),则尝试先删除文件,
否则像之前版本那样尝试添加或递增数字后缀。
破坏性变更
改变了模板中上传文件的URL:
修改前:
<目录路径>
修改后:
<目录路径>?upload