diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 28ddc580..0482512b 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -2427,7 +2427,13 @@ func (manager *SnapshotManager) pruneSnapshotsExhaustive(referencedFossils map[s } allFiles, _ := manager.ListAllFiles(manager.storage, chunkDir) + uniqueFiles := make(map[string]bool) for _, file := range allFiles { + if _, found := uniqueFiles[file]; found { + continue + } + uniqueFiles[file] = true + if len(file) == 0 || file[len(file)-1] == '/' { continue }