File Date / Folder Date on upload/copy/move Individually adjustable

Hi there,

at the moment, there is the following terrible situation:

When i upload over the Windows-Client, the date of the files/folders is preserved.

When i upload over the Browser, the date of the files/folders will be changed to the current date.

If you add files via WebDav the date of the files/folders will be changed to the current date.

If you copy within the NC via the browser, it is also set to the current date.

If you move it in the browser, it remains the same, but only if you move it to the internal memory! If you move from an externally mounted storage (e.g. smb/cifs), it is also changed to the current date.

What a mess.

This should be variable, i.e. customisable, because some want it this way, others that way. It should be possible to set it in the admin/user settings and when copying/moving in the browser there should be a checkbox ‘Keep file date’.

I postted this also on feat(tests): Test that mtime is the same after move or rename by come-nc · Pull Request #43689 · nextcloud/server · GitHub

What do you think about this?

You’re likely to be more interested in the linked Issues rather than that unreleased PR:

E.g.

There is far more context in them.