Consistent handling of last modified dates when copying/moving files #15192
Description
Is your feature request related to a problem? Please describe.
Nextcloud handles last-modified metadata inconsistently when copying and moving files and folders:
Activity | Source | Destination | last modified preserved? v15 | last modified preserved? v16 | last modified preserved? v17 | last modified preserved? v18 | last modified preserved? v19 |
---|---|---|---|---|---|---|---|
file upload > 10 MB via browser | Desktop | Primary Storage | ✔️ | ✔️ | ✔️ | ✔️ | |
file upload < 10 MB via browser | Desktop | Primary Storage | ⛔ | ⛔ | ✔️ | ✔️ | |
file upload via browser | Desktop | External Storage | ⛔ | ⛔ | ⛔ | ||
sync files with Desktop client | Desktop | Primary Storage | ✔️ | ✔️ | ✔️ | ✔️ | |
upload files via WebDAV (@codiflow) | Desktop | Primary Storage | ⛔ | ⛔ | ⛔ | ⛔ | |
download files via WebDAV | Primary Storage | Desktop | ✔️ | ⛔ | |||
upload files via rclone | Desktop | Primary Storage | ✔️ | ✔️ | ✔️ | ||
upload files via rclone | Desktop | External Storage | ⛔ | ⛔ | |||
moving files and folders within nextcloud | Primary Storage | Primary Storage | ✔️ | ✔️ | ✔️ | ✔️ | |
moving files and folders within nextcloud | Primary Storage | External Storage | ⛔ | ⛔ | ⛔ | ||
moving files and folders within nextcloud | External Storage | Primary Storage | ⛔ | ⛔ | ⛔ | ||
copy files and folders within nextcloud | Any Storage | Any Storage | ⛔ | ⛔ | ⛔ | ⛔ | |
copying files via cloud federation | remote nextcloud | local nextcloud | ⛔ | ⛔ | |||
upload via file drop | Desktop | primary storage | ⛔ | ⛔ | ⛔ |
(Primary storage refers to object storage directly managed by nextcloud, External Storage refers to externally mounted object storage.)
Describe the solution you'd like
Last-modification metadata should always be preserved, no matter where files and folders are coming from or moving to.
Describe alternatives you've considered
This should just work 😉
Additional context
For my use case, the last modification date of files and folders is critical for comparing different versions of the same item at different locations. It also is important when moving files from active usage into an archival storage (nearline bucket mounted externally).
Activity