fix access local file error for sync

This commit is contained in:
xiaoyaofenfen
2022-06-20 20:38:22 +08:00
parent 84a833db5b
commit f003ff9f44
@@ -438,6 +438,7 @@ func (f *FileActionTaskManager) doFileDiffRoutine(panFiles PanFileList, localFil
err := fileSum.OpenPath()
if err != nil {
logger.Verbosef("文件不可读, 错误信息: %s, 跳过...\n", err)
continue
}
fileSum.Sum(localfile.CHECKSUM_SHA1) // block operation
localFile.Sha1Hash = fileSum.SHA1