1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Don't throw an error on 0-byte chunk files with suffix '.tmp'.

This commit is contained in:
Gilbert Chen
2020-07-07 23:25:09 -04:00
parent 8b489f04eb
commit 1eb1fb14a8

View File

@@ -845,7 +845,7 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
chunk = strings.Replace(chunk, "/", "", -1)
chunkSizeMap[chunk] = allSizes[i]
if allSizes[i] == 0 {
if allSizes[i] == 0 && !strings.HasSuffix(chunk, ".tmp") {
LOG_WARN("SNAPSHOT_CHECK", "Chunk %s has a size of 0", chunk)
emptyChunks++
}