mirror of
https://github.com/rclone/rclone.git
synced 2024-11-08 01:25:14 +01:00
84191ac6dc
When a file has its modtime set while it is open we delay setting the modtime until the file is closed. The file is then uploaded in Flush. In Release we check the cached file has been uploaded by comparing modtimes and or hashes and upload it again if it has changed. Before this change we forgot to change the time on the cached file when we updated the time file on the object, so this mean that Release reset the time to the wrong time and uploaded the file again on remotes which don't support hashes (eg crypt). The fix was to set the modtime of the cached file at the same time we set the modtime of the remote object. This means that the files check as identical in Release so it doesn't try to upload the file. This means that we avoid a double upload and the modtime is correct. See: https://forum.rclone.org/t/modification-time-with-vfs-cache/13906/8 |
||
---|---|---|
.. | ||
test_vfs | ||
vfsflags | ||
cache_test.go | ||
cache.go | ||
dir_handle_test.go | ||
dir_handle.go | ||
dir_test.go | ||
dir.go | ||
errors_test.go | ||
errors.go | ||
file_test.go | ||
file.go | ||
help.go | ||
make_open_tests.go | ||
open_test.go | ||
rc.go | ||
read_test.go | ||
read_write_test.go | ||
read_write.go | ||
read.go | ||
vfs_case_test.go | ||
vfs_test.go | ||
vfs.go | ||
write_test.go | ||
write.go |