修复webdav上传的根目录
This commit is contained in:
parent
dc69a63217
commit
024f09f666
1 changed files with 3 additions and 0 deletions
|
@ -384,6 +384,9 @@ func (fs *FileSystem) CreateDirectory(ctx context.Context, fullPath string) (*mo
|
|||
}
|
||||
|
||||
if fullPath == "/" {
|
||||
if fs.Root != nil {
|
||||
return fs.Root, nil
|
||||
}
|
||||
return fs.User.Root()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue