♻️ Rename func

This commit is contained in:
Daniel 2024-01-06 20:14:39 +08:00
parent b5b05cef49
commit 5a1a632912
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017
2 changed files with 2 additions and 2 deletions

View File

@ -1560,7 +1560,7 @@ func newRepository() (ret *dejavu.Repo, err error) {
return
}
ignoreLines := getIgnoreLines()
ignoreLines := getSyncIgnoreLines()
ignoreLines = append(ignoreLines, "/.siyuan/conf.json") // 忽略旧版同步配置
ret, err = dejavu.NewRepo(util.DataDir, util.RepoDir, util.HistoryDir, util.TempDir, Conf.System.ID, Conf.System.Name, Conf.System.OS, Conf.Repo.Key, ignoreLines, cloudRepo)
if nil != err {

View File

@ -577,7 +577,7 @@ func formatRepoErrorMsg(err error) string {
return msg
}
func getIgnoreLines() (ret []string) {
func getSyncIgnoreLines() (ret []string) {
ignore := filepath.Join(util.DataDir, ".siyuan", "syncignore")
err := os.MkdirAll(filepath.Dir(ignore), 0755)
if nil != err {