Skip to content

Feature Request: Add option to keep file & folder modification time when copying #457

@batagy

Description

@batagy

Is your feature request related to a problem? Please describe.
I tested latest cloudcmd v19.3.7 on OpenMediaVault 8.1.0 (Debian 13). When I copy a folder from oone path to another (on EXT4 filesystem in this case), the copied folders and files modification time will be refreshed to current time, as opposed to keep the original time.

It has the same default behaviour we when use "cp" command on linux.

If we move files instead of copy, the modification times will be kept.

Describe the solution you'd like
I'd like to see a feature, when I copy files or folders, the file and folder modification timestamp should be kept. This would correspond to "cp -p" command in linux.

I did not test the behaviour on Windows.

This option should be configurable, both from command line, and from docker enviroment variable.

Additionally, a different feature, but also owner and file permissions could be kept as well, when copying. This should be another configurable parameter.

Thanks in advance
György

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions