mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
a021097b06
commit
883898f053
3 changed files with 11 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue