🎨 文件夹不编入路径映射

This commit is contained in:
Liang Ding 2022-06-06 00:35:12 +08:00
parent 9ba54bf495
commit 42ff4a8fe4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 9 additions and 5 deletions

View file

@ -1006,7 +1006,7 @@ func calcUnchangedDataList(passwd string) (unchangedDataList map[string]bool, re
unchangedDataList = map[string]bool{}
removeList = map[string]bool{}
filepath.Walk(syncDir, func(path string, info fs.FileInfo, _ error) error {
if syncDir == path || pathJSON == info.Name() {
if syncDir == path || pathJSON == info.Name() || "index.json" == info.Name() || info.IsDir() {
return nil
}