🎨 文件夹不编入路径映射

This commit is contained in:
Liang Ding 2022-06-06 00:55:02 +08:00
parent 42ff4a8fe4
commit 48b7364331
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 11 additions and 4 deletions

View file

@ -1013,7 +1013,7 @@ func calcUnchangedDataList(passwd string) (unchangedDataList map[string]bool, re
encryptedP := strings.TrimPrefix(path, syncDir+string(os.PathSeparator))
encryptedP = filepath.ToSlash(encryptedP)
decryptedP := metaJSON[encryptedP]
if "" == decryptedP { // 理论上不会发生
if "" == decryptedP {
removeList[path] = true
if gulu.File.IsDir(path) {
return filepath.SkipDir