nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.44k stars 4.08k forks source link

[BUG] ctime, mtime, atime of files and directories are lost in SMB external storage #44389

Open ShGKme opened 8 months ago

ShGKme commented 8 months ago

How to use GitHub


Steps to reproduce:

  1. Add an SMB storage via files_external
  2. Sync the storage to desktop folder
  3. Move data from Nextcloud storage to files_external storage via synced folder
  4. Files first have original timestamps until data on files_external is rediscovered
szaimen commented 8 months ago

Hi, which nc version?

ShGKme commented 8 months ago

Hi, which nc version?

Reported on 27, but original issue is old, at least v17 and above.

sorbaugh commented 7 months ago

cc @jancborchardt , the more we analyze this issue the more questions pop up. For instance, COPY operations change the mtime of the file. Do we have a reason for this? Wouldn't it be better for COPY moves to leave the mtime unchanged?

Also cc-ing @Altahrim & @come-nc to join the discussion

jancborchardt commented 2 months ago

@sorbaugh at least from design side there is no reason for this, no. It’s also weird because if you are in a folder sorted by date and copy/duplicate a file, both files would be far away from each other, whereas they should be right next to each other.