Scille / parsec-cloud

Open source Dropbox-like file sharing with full client encryption !
https://parsec.cloud
Other
271 stars 40 forks source link

Wrong ctime timestamp on Linux/macOS #8942

Open mmmarcos opened 2 weeks ago

mmmarcos commented 2 weeks ago

The ctime (Change time) timestamp is not consistent between platforms:

On Windows, it is set to the updated time (OK) https://github.com/Scille/parsec-cloud/blob/7059f9bd1b98aefc234a7b2c704236b0fddd17a2/libparsec/crates/platform_mountpoint/src/windows/filesystem.rs#L89

On Linux, it is sometimes set to the created time (NOK): https://github.com/Scille/parsec-cloud/blob/7059f9bd1b98aefc234a7b2c704236b0fddd17a2/libparsec/crates/platform_mountpoint/src/unix/filesystem.rs#L52 https://github.com/Scille/parsec-cloud/blob/7059f9bd1b98aefc234a7b2c704236b0fddd17a2/libparsec/crates/platform_mountpoint/src/unix/filesystem.rs#L81 https://github.com/Scille/parsec-cloud/blob/7059f9bd1b98aefc234a7b2c704236b0fddd17a2/libparsec/crates/platform_mountpoint/src/unix/filesystem.rs#L105