mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:13:52 +08:00
5b0f9dc4e3
For some files the Windows Volume Shadow Service (VSS) advertises the file size as X in the directory listing but returns a different number Y on stat-ing the file. If the file is opened and read there are Y bytes available for reading. Existing copy tools copy Y bytes rather than X so for consistency rclone should do the same. This fixes the problem by stat-ing the file immediately before opening it. This will also reduce the unnecessary occurrence of "can't copy - source file is being updated" errors; if the file has finished changing by the time we come to copy it then we now can copy it successfully. See: https://forum.rclone.org/t/consistently-getting-corrupted-on-transfer-sizes-differ-syncing-to-an-smb-share/42218/ |
||
---|---|---|
.. | ||
about_unix.go | ||
about_windows.go | ||
fadvise_other.go | ||
fadvise_unix.go | ||
lchtimes_unix.go | ||
lchtimes.go | ||
local_internal_test.go | ||
local_test.go | ||
local.go | ||
metadata_bsd.go | ||
metadata_linux.go | ||
metadata_other.go | ||
metadata_unix.go | ||
metadata_windows.go | ||
metadata.go | ||
read_device_other.go | ||
read_device_unix.go | ||
remove_other.go | ||
remove_test.go | ||
remove_windows.go | ||
setbtime_windows.go | ||
setbtime.go | ||
symlink_other.go | ||
symlink.go | ||
tests_test.go | ||
xattr_unsupported.go | ||
xattr.go |