From 1eb1fb14a8e98b4e8495fdcfab384e8612ec59a5 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Tue, 7 Jul 2020 23:25:09 -0400 Subject: [PATCH] Don't throw an error on 0-byte chunk files with suffix '.tmp'. --- src/duplicacy_snapshotmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 0b1fcdfd..6427d7e2 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -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++ }