local sort for no sort param driver

This commit is contained in:
微凉
2021-12-30 16:15:57 +08:00
parent 0f079827e5
commit 3331462229
8 changed files with 42 additions and 44 deletions

View File

@ -77,6 +77,9 @@ func Path(c *gin.Context) {
})
} else {
files = Hide(files, req.Path)
if driver.Config().LocalSort {
model.SortFiles(files, account)
}
c.JSON(200, common.Resp{
Code: 200,
Message: "folder",