🎨 数据历史文档和资源文件支持分页和搜索 https://github.com/siyuan-note/siyuan/issues/4901

This commit is contained in:
Liang Ding 2022-08-23 11:30:51 +08:00
parent f69798f91e
commit 8b137e0d6d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 204 additions and 18 deletions

View file

@ -146,15 +146,6 @@ func SetBooted() {
logging.LogInfof("kernel booted")
}
func GetHistoryDir(suffix string) (ret string, err error) {
ret = filepath.Join(HistoryDir, time.Now().Format("2006-01-02-150405")+"-"+suffix)
if err = os.MkdirAll(ret, 0755); nil != err {
logging.LogErrorf("make history dir failed: %s", err)
return
}
return
}
var (
HomeDir, _ = gulu.OS.Home()
WorkingDir, _ = os.Getwd()