rclone/vfs/vfscache
Nick Craig-Wood 00a0ee1899 vfs: fix modtime changing when reading file into cache - fixes #5277
Before this change but after:

aea8776a43 vfs: fix modtimes not updating when writing via cache #4763

When a file was opened read-only the modtime was read from the cached
file. However this modtime wasn't correct leading to an incorrect
result.

This change fixes the definition of `item.IsDirty` to be true only
when the data is dirty. This fixes the problem as a read only file
isn't considered dirty.
2021-04-28 09:33:22 +01:00
..
downloaders Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
writeback fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
cache_test.go vfs: rename files in cache and cancel uploads on directory rename 2021-03-22 09:07:01 +00:00
cache.go vfs: fix modtime changing when reading file into cache - fixes #5277 2021-04-28 09:33:22 +01:00
item_test.go Spelling fixes 2020-10-14 15:21:31 +01:00
item.go vfs: fix modtime changing when reading file into cache - fixes #5277 2021-04-28 09:33:22 +01:00