This commit is contained in:
Liang Ding 2023-03-10 09:56:26 +08:00
parent a021097b06
commit 883898f053
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 11 additions and 3 deletions

View file

@ -325,6 +325,10 @@ func GetLocalStorage() (ret map[string]interface{}, err error) {
}
func setLocalStorage(val interface{}) (err error) {
if util.ReadOnly {
return
}
dirPath := filepath.Join(util.DataDir, "storage")
if err = os.MkdirAll(dirPath, 0755); nil != err {
logging.LogErrorf("create storage [local] dir failed: %s", err)