feat: file aggregation and regular rename api (#3788)

* 增加文件聚合接口,将给定文件夹下所有文件移动到目标文件夹。

* 增加文件正则重命名接口。

---------

Co-authored-by: varg247 <varg247@qq.com>
This commit is contained in:
varg1714
2023-03-10 19:01:49 +08:00
committed by GitHub
parent d06c605421
commit 1091e1b740
2 changed files with 152 additions and 0 deletions

View File

@ -126,7 +126,9 @@ func _fs(g *gin.RouterGroup) {
g.Any("/dirs", handles.FsDirs)
g.POST("/mkdir", handles.FsMkdir)
g.POST("/rename", handles.FsRename)
g.POST("/regex_rename", handles.FsRegexRename)
g.POST("/move", handles.FsMove)
g.POST("/recursive_move", handles.FsRecursiveMove)
g.POST("/copy", handles.FsCopy)
g.POST("/remove", handles.FsRemove)
g.PUT("/put", middlewares.FsUp, handles.FsStream)