fix(webdav): alist path not found
This commit is contained in:
parent
e83081380e
commit
df90311453
@ -38,10 +38,10 @@ func ParsePath(rawPath string) (*model.Account, string, base.Driver, error) {
|
|||||||
if bIndex != -1 {
|
if bIndex != -1 {
|
||||||
name = name[:bIndex]
|
name = name[:bIndex]
|
||||||
}
|
}
|
||||||
if name == "/" {
|
//if name == "/" {
|
||||||
name = ""
|
// name = ""
|
||||||
}
|
//}
|
||||||
return &account, strings.TrimPrefix(rawPath, name), driver, nil
|
return &account, utils.ParsePath(strings.TrimPrefix(rawPath, name)), driver, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func ErrorResp(c *gin.Context, err error, code int) {
|
func ErrorResp(c *gin.Context, err error, code int) {
|
||||||
|
@ -42,6 +42,7 @@ func (fs *FileSystem) File(rawPath string) (*model.File, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
account, path_, driver, err := common.ParsePath(rawPath)
|
account, path_, driver, err := common.ParsePath(rawPath)
|
||||||
|
log.Debugln(account, path_, driver, err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user