From 9cc051cad6a3b647b69839014d06fc100dcd1cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 17 Dec 2023 20:40:40 +0800 Subject: [PATCH] Fix filemanager.MkdirAll --- service/filemanager/default.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/filemanager/default.go b/service/filemanager/default.go index b77c086e..c5744048 100644 --- a/service/filemanager/default.go +++ b/service/filemanager/default.go @@ -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() {