I tried to update file modification times through the following command:
rclone sync -P --ignore-checksum -vv /mnt/user/Music/ /mnt/disks/owncube/Musik/
As you can see Unraid says it worked (full logs):
2020-06-22 01:34:13 DEBUG : album1.zip: Modification times differ by 25h51m58s: 2020-01-05 23:28:0 7 +0100 CET, 2020-01-07 01:20:05 +0100 CET ... 2020-06-22 01:34:48 DEBUG : album1.zip: MD5 = 8df15abbe51f4b120532f5540624f469 OK 2020-06-22 01:34:51 INFO : album1.zip: Updated modification time in destination 2020-06-22 01:34:51 DEBUG : album1.zip: Unchanged skipping
But the files on the server were not updated!
Which command is build through rclone to update the file through webDAV:
PROPPATCH... ? And how is the server response handled?
I tried many many different cURL commands and I'm not able to update the file modification time, too.
It seems Nextcloud does only accept the X-OC-Mtime header for file uploads (
EDIT: Yes, only Connector/Sabre/File.php -> put() contains the X-OC-MTime check. Connector/Sabre/Directory.php -> moveInto() misses it.
This means rclone does not handle the server response correctly and should answer with an error (so users get upset and start trolling Owncloud / Nextcloud developers to integrate this feature ^^)
EDIT: I started an issue at sabre/dav, but sadly the developer refuses to enable the getlastmodified property by default so everyone can update the file modification time. Please comment in this issue to support my idea so the developer hopefully rethinks his decision. Thank you!