How to keep the timestamp of a folder when copying it
How to keep the timestamp of a folder when copying it
How to keep the timestamp of a folder when copying it?
Re: How to keep the timestamp of a folder when copying it
Just what I want, thanks very much...
Re: How to keep the timestamp of a folder when copying it
To keep the timestamp (i.e., the date and time at which a folder was created or last modified) of a folder when copying it, you can use the cp command with the -p option on Unix-like systems such as Linux and macOS.
For example, to copy the folder source_folder to destination_folder, preserving the timestamp, you can use the following command:
code "cp -p source_folder destination_folder"
For example, to copy the folder source_folder to destination_folder, preserving the timestamp, you can use the following command:
code "cp -p source_folder destination_folder"
Who is online
Users browsing this forum: No registered users and 34 guests