Skip to content

Commit

Permalink
Benchmark may incorrectly list the chunks directory when looking for …
Browse files Browse the repository at this point in the history
…previous temporary files
  • Loading branch information
gilbertchen committed Oct 22, 2018
1 parent bfb4b44 commit d8e13d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/duplicacy_gcdstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func (storage *GCDStorage) ListFiles(threadIndex int, dir string) ([]string, []i
subDirs = append(subDirs, file.Name + "/")
}
return subDirs, nil, nil
} else if strings.HasPrefix(dir, "snapshots/") {
} else if strings.HasPrefix(dir, "snapshots/") || strings.HasPrefix(dir, "benchmark") {
pathID, err := storage.getIDFromPath(threadIndex, dir, false)
if err != nil {
return nil, nil, err
Expand Down
2 changes: 1 addition & 1 deletion src/duplicacy_onestorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (storage *OneDriveStorage) ListFiles(threadIndex int, dir string) ([]string
}
}
return subDirs, nil, nil
} else if strings.HasPrefix(dir, "snapshots/") {
} else if strings.HasPrefix(dir, "snapshots/") || strings.HasPrefix(dir, "benchmark") {
entries, err := storage.client.ListEntries(storage.storageDir + "/" + dir)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit d8e13d8

Please sign in to comment.