mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-17 18:31:21 +08:00
修复文件上传错误
This commit is contained in:
@@ -57,6 +57,7 @@ func RegisterDataBase() {
|
||||
if strings.HasPrefix(database,"./") {
|
||||
database = filepath.Join(WorkingDirectory,string(database[1:]))
|
||||
}
|
||||
|
||||
dbPath := filepath.Dir(database)
|
||||
os.MkdirAll(dbPath, 0777)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user