🎨 Pull away Path

This commit is contained in:
微凉
2022-01-28 11:04:56 +08:00
parent b797f4302c
commit 1a69d80489
5 changed files with 34 additions and 5 deletions

View File

@ -1,6 +1,7 @@
package file
import (
"github.com/Xhofe/alist/drivers/operate"
"github.com/Xhofe/alist/model"
"github.com/Xhofe/alist/server/common"
"github.com/gin-gonic/gin"
@ -30,7 +31,7 @@ func Folder(c *gin.Context) {
common.ErrorResp(c, err, 500)
return
}
file, rawFiles, err := driver.Path(path, account)
file, rawFiles, err := operate.Path(driver, account, path)
if err != nil {
common.ErrorResp(c, err, 500)
return