mirror of https://github.com/cloudreve/Cloudreve
Merge pull request #1244 from cloudreve/webdav-root
fix: cannot redirect root folder (close #1242)pull/1257/head
commit
a3d0291f41
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue