Fix filemanager.MkdirAll

This commit is contained in:
世界 2023-12-17 20:40:40 +08:00
parent c501a58ae7
commit 2196f193ac
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -118,6 +118,10 @@ func (m *defaultManager) Mkdir(path string, perm os.FileMode) error {
func (m *defaultManager) MkdirAll(path string, perm os.FileMode) error {
path = m.BasePath(path)
return m.mkdirAll(path, perm)
}
func (m *defaultManager) mkdirAll(path string, perm os.FileMode) error {
dir, err := os.Stat(path)
if err == nil {
if dir.IsDir() {