修复webdav上传的根目录

This commit is contained in:
Weidi Deng 2022-04-26 14:37:03 +08:00
parent dc69a63217
commit 024f09f666

View file

@ -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()
}