mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 19:43:45 +08:00
8c69455c37
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. |
||
---|---|---|
.. | ||
_testdir_path1.._testdir_path2.path1.lst | ||
_testdir_path1.._testdir_path2.path1.lst-new | ||
_testdir_path1.._testdir_path2.path1.lst-old | ||
_testdir_path1.._testdir_path2.path2.lst | ||
_testdir_path1.._testdir_path2.path2.lst-new | ||
_testdir_path1.._testdir_path2.path2.lst-old | ||
missing-listings._testdir_path1.._testdir_path2.path1.lst-err | ||
missing-listings._testdir_path1.._testdir_path2.path1.lst-new | ||
missing-listings._testdir_path1.._testdir_path2.path1.lst-old | ||
missing-listings._testdir_path1.._testdir_path2.path2.lst-err | ||
missing-listings._testdir_path1.._testdir_path2.path2.lst-new | ||
missing-listings._testdir_path1.._testdir_path2.path2.lst-old | ||
path1-missing._testdir_path1.._testdir_path2.path1.lst-err | ||
path1-missing._testdir_path1.._testdir_path2.path1.lst-new | ||
path1-missing._testdir_path1.._testdir_path2.path1.lst-old | ||
path1-missing._testdir_path1.._testdir_path2.path2.lst-err | ||
path1-missing._testdir_path1.._testdir_path2.path2.lst-new | ||
path1-missing._testdir_path1.._testdir_path2.path2.lst-old | ||
path2-missing._testdir_path1.._testdir_path2.path1.lst-err | ||
path2-missing._testdir_path1.._testdir_path2.path1.lst-new | ||
path2-missing._testdir_path1.._testdir_path2.path1.lst-old | ||
path2-missing._testdir_path1.._testdir_path2.path2.lst-err | ||
path2-missing._testdir_path1.._testdir_path2.path2.lst-new | ||
path2-missing._testdir_path1.._testdir_path2.path2.lst-old | ||
test.log |