Changes between Initial Version and Version 1 of Ticket #897, comment 22
- Timestamp:
- 2015-09-24T19:44:11Z (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #897, comment 22
initial v1 10 10 > Obviously if the operating system asserts that the {{{creation time}}} has changed, then we should re-upload. 11 11 12 It is possible for `ctime` to change but `mtime` not, when the file contents change. In particular, suppose there are two files `foo` and `bar` that have different contents but the same size and `mtime` ( for example because they were created at the same time to within the `mtime` resolution). Then, `mv bar foo` will not change `foo`'s `mtime`, but will set its `ctime` to the current time. (Verified on Linux.)12 It is possible for `ctime` to change but `mtime` not, when the file contents change. In particular, suppose there are two files `foo` and `bar` that have different contents but the same size and `mtime` (because they were last modified at the same time to within the `mtime` resolution). Then, `mv bar foo` will not change `foo`'s `mtime`, but will set its `ctime` to the current time. (Verified on Linux.)