mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 19:54:54 -06:00
Don't create extra directories on --dry-run
This commit is contained in:
@@ -600,9 +600,11 @@ func (manager *SnapshotManager) ListAllFiles(storage Storage, top string) (allFi
|
||||
if len(files) > 1024 && !storage.IsFastListing() {
|
||||
for i := 0; i < 256; i++ {
|
||||
subdir := dir + fmt.Sprintf("%02x\n", i)
|
||||
if !manager.config.dryRun {
|
||||
manager.storage.CreateDirectory(0, subdir)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Remove chunk sub-directories that are empty
|
||||
if len(files) == 0 && strings.HasPrefix(dir, "chunks/") && dir != "chunks/" {
|
||||
|
||||
Reference in New Issue
Block a user