Copy Folders with their Original Time Stamp

Something is missing in Far Manager? You have a great idea that should be heard? Write here.
Post Reply
rs3d
Posts: 16
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times
Been thanked: 1 time

Copy Folder - Folder Date NOT to change

Post by rs3d »

Is there a option that when a folder is copied, the copied version
has the same date as the original? With FARs defaults the folder
gets the current system date...

ExampeDir (1.1.2001) -> COPY: ExampleDir (8.12.2010)

I couldn't find the option in case there is one. Thanks a lot!
Игорь Юдинцев
Posts: 726
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 2 times

Re: Copy Folder - Folder Date NOT to change

Post by Игорь Юдинцев »

A possible workaround: copy it as usual, then run the macro for Far 2.0 (Far 1.7x) (with this .REG file imported to the registry, it is invoked by pressing CtrlAltQ).
The macro copies the timestamps of all files from active to passive panel.
rs3d
Posts: 16
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times
Been thanked: 1 time

Re: Copy Folder - Folder Date NOT to change

Post by rs3d »

Thank you for the idea but it doesn't work for Folders under Win7 64bit :(
Игорь Юдинцев
Posts: 726
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 2 times

Re: Copy Folder - Folder Date NOT to change

Post by Игорь Юдинцев »

The macro uses keyboard shortcuts to access timestamp fields in file attributes change dialog.
These shortcuts have been changed in recent Far 2.0 builds, so the macro needs to be updated:
Attachments
CtrlAltQ.zip
(529 Bytes) Downloaded 314 times
rs3d
Posts: 16
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times
Been thanked: 1 time

Re: Copy Folder - Folder Date NOT to change

Post by rs3d »

Thanks Igor! This Script works now, but not for nested directories.

Please consider adding a "Original Time Stamp" option in the Copy Dialog for FAR,
this would be excellent.

Thanks, Rob
rs3d
Posts: 16
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times
Been thanked: 1 time

Re: Copy Folder - Folder Date NOT to change

Post by rs3d »

Dear Igor,

could you please change the macro to change directory only if it's newer
than the original. Otherwise I would destroy the original time stamp if
I'm not looking correctly...

Thank you, Rob
Игорь Юдинцев
Posts: 726
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 2 times

Re: Copy Folder - Folder Date NOT to change

Post by Игорь Юдинцев »

Attachments
CtrlAltQ.zip
(728 Bytes) Downloaded 346 times
rs3d
Posts: 16
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times
Been thanked: 1 time

Copy Folders with their Original Time Stamp

Post by rs3d »

This is something I still would find very useful - please add an option to
the copy dialog that Folders are copied with their original time stamp.

This would be helpful eg. to find project folders by date after a quick backup ...

Thanks for making FAR! Best :-)
KtW
Posts: 30
Joined: Mon 10 Aug, 2009 01:47

Re: Copy Folders with their Original Time Stamp

Post by KtW »

I Second That Option!
Because It's Useful Also For Sync Jobs...
Marton
Posts: 18
Joined: Mon 27 Apr, 2009 06:42

Copy Folders with their Original Time Stamp

Post by Marton »

About four years later, I third that option. It would make my life easier when making backups. This is giving me a hard time, using robocopy via cmd line for something so simple as keeping the date of the original folders... that it even fails to do so.
On Far I think this should be the default when copying folders...
Thanks for keeping up with Far, I enjoy it very much.
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Copy Folders with their Original Time Stamp

Post by KlepetoX »

It is possible with SimSU's macros. Search them here and the macro is "SimSU.Plugin_FastCopy". It uses free external program FastCopy. I have modification of this macro with confirmation and warning dialogs. Beside copying, moving, deleting files, it is possible also folder synchronization, mirroring... FastCopy copies files on background - another great advantage. I don't know if it is legal to post modified macros of other authors here. But you can find it and use it as is. It's a great possibility and thanks to SimSU for it. It's a pitty that FAR doesn't do this basic things by itself (preserving time stamps, background operations...).
rs3d
Posts: 16
Joined: Wed 13 Oct, 2010 18:06
Has thanked: 2 times
Been thanked: 1 time

Copy Folder - Folder Date NOT to change

Post by rs3d »

Just wanted to bring up that topic again... even though Macros are a solution, it would be great if there would be the possibility to copy the original folder date stamp with the Copy Options...
User avatar
HaRT
Moderator
Posts: 11160
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 243 times
Been thanked: 384 times

Copy Folder - Folder Date NOT to change

Post by HaRT »

changelog wrote:
drkns 2019-11-16 19:18:17+00:00 - build 5509 1. Add "[ ] Preserve timestamps" option to Copy dialog.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Post Reply

Return to “Suggestions and Ideas”