🎨 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

@ -4,6 +4,7 @@ import (
"fmt"
"github.com/Xhofe/alist/conf"
"github.com/Xhofe/alist/drivers/base"
"github.com/Xhofe/alist/drivers/operate"
"github.com/Xhofe/alist/server/common"
"github.com/Xhofe/alist/utils"
"github.com/gin-gonic/gin"
@ -50,7 +51,7 @@ func Proxy(c *gin.Context) {
return
}
// 检查文件
file, err := driver.File(path, account)
file, err := operate.File(driver, account, path)
if err != nil {
common.ErrorResp(c, err, 500)
return