mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-28 10:51:57 +08:00
修复webdav上传的根目录
This commit is contained in:
@@ -384,6 +384,9 @@ func (fs *FileSystem) CreateDirectory(ctx context.Context, fullPath string) (*mo
|
|||||||
}
|
}
|
||||||
|
|
||||||
if fullPath == "/" {
|
if fullPath == "/" {
|
||||||
|
if fs.Root != nil {
|
||||||
|
return fs.Root, nil
|
||||||
|
}
|
||||||
return fs.User.Root()
|
return fs.User.Root()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user