rclone/cmd/bisync/testdata
nielash 8c69455c37 sync: don't set dir modtimes if already set
Before this change, directory modtimes (and metadata) were always synced from
src to dst, even if already in sync (i.e. their modtimes already matched.) This
potentially required excessive API calls, made logs noisy, and was potentially
problematic for backends that create "versions" or otherwise log activity
updates when modtime/metadata is updated.

After this change, a new DirsEqual function is added to check whether dirs are
equal based on a number of factors such as ModifyWindow and sync flags in use.
If the dirs are equal, the modtime/metadata update is skipped.

For backends that require setDirModTimeAfter, the "after" sync is performed only
for dirs that could have been changed by the sync (i.e. dirs containing files
that were created/updated.)

Note that dir metadata (other than modtime) is not currently considered by
DirsEqual, consistent with how object metadata is synced (only when objects are
unequal for reasons other than metadata).

To sync dir modtimes and metadata unconditionally (the previous behavior), use
--ignore-times.
2024-03-07 09:57:11 +00:00
..
test_all_changed sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_backupdir bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_basic sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_changes bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_check_access sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_check_access_filters sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_check_filename sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_check_sync bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_compare_all bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_createemptysrcdirs sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_dry_run bisync: clarify file operation directions in dry-run logs - fixes #7029 2024-03-06 09:26:53 -05:00
test_equal bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_extended_char_paths sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_extended_filenames sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_filters sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_filtersfile_checks sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_ignorelistingchecksum sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_max_delete_path1 bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_max_delete_path2_force bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_normalization sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_rclone_args sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_resolve sync: implement directory sync for mod times and metadata 2024-02-28 16:26:14 +00:00
test_resync bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_resync_modes bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00
test_rmdirs sync: don't set dir modtimes if already set 2024-03-07 09:57:11 +00:00
test_volatile bisync: add --resync-mode for customizing --resync - fixes #5681 2024-01-20 17:17:01 -05:00