mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-11 05:43:23 +00:00
Don't create extra directories on --dry-run
This commit is contained in:
@@ -600,7 +600,9 @@ func (manager *SnapshotManager) ListAllFiles(storage Storage, top string) (allFi
|
|||||||
if len(files) > 1024 && !storage.IsFastListing() {
|
if len(files) > 1024 && !storage.IsFastListing() {
|
||||||
for i := 0; i < 256; i++ {
|
for i := 0; i < 256; i++ {
|
||||||
subdir := dir + fmt.Sprintf("%02x\n", i)
|
subdir := dir + fmt.Sprintf("%02x\n", i)
|
||||||
manager.storage.CreateDirectory(0, subdir)
|
if !manager.config.dryRun {
|
||||||
|
manager.storage.CreateDirectory(0, subdir)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user