rclone/fs/sync
Nick Craig-Wood 10eb4742dd sync: fix creation of empty directories when --create-empty-src-dirs=false
In v1.66.0 the changes to enable metadata preservation on directories
introduced a regression, namely that empty directories were created
despite the state of the --create-empty-src-dirs flag.

This patch fixes the problem by letting the normal rclone directory
creation create the directories and fixing up their timestamps and
metadata afterwards if --create-empty-src-dirs=false.

Fixes #7689
See: https://forum.rclone.org/t/empty-dirs-not-wanted/45059/
See: https://forum.rclone.org/t/how-to-ignore-empty-directories-when-uploading-from-windows/45057/
2024-05-03 12:29:18 +01:00
..
pipe_test.go fs: use atomic types 2023-08-22 12:52:13 +01:00
pipe.go move: if --check-first and --order-by are set then delete with perfect ordering 2023-03-10 08:23:32 +00:00
rc_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
rc.go docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
sync_test.go sync: fix creation of empty directories when --create-empty-src-dirs=false 2024-05-03 12:29:18 +01:00
sync.go sync: fix creation of empty directories when --create-empty-src-dirs=false 2024-05-03 12:29:18 +01:00