TC not preserving folder date/time when copying/moving

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
avada
Senior Member
Senior Member
Posts: 217
Joined: 2007-10-05, 06:24 UTC

TC not preserving folder date/time when copying/moving

Post by *avada »

Hi!
I just noticed this issue when I copied a lot of files. All the folder dates were changed to date of the copying, but for the files the dates were preserved. Is this a bug? If not how can I change this behavior?
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It is operating system changes folder modify dates. Anyway folder dates are non-stable and shouldn't be used.
avada
Senior Member
Senior Member
Posts: 217
Joined: 2007-10-05, 06:24 UTC

Post by *avada »

MVV wrote:It is operating system changes folder modify dates. Anyway folder dates are non-stable and shouldn't be used.
What? That can't be right. I mean when a folder/file is created when copying I guess its created with the current date, but then TC sets its attributes to that of the originals at least for files, so I guess it could do it to folders too.

And what do you mean by I shouldn't use it. The dates are there its not something I can disable.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

If you open folder properties you will see that Windows even doesn't display folder last modify date - MS doesn't think it is important attribute :) This date may be updated by Windows automatically when you change folder contents.
Last edited by MVV on 2010-12-02, 11:41 UTC, edited 1 time in total.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Go to Configuration => Copy/Delete => General Copy + delete options and tick the option [x] Copy date/time of directories.

Side note:
MVV is right. In particular on NTFS filesystems a folder date is not a stable fact, but it will be changed by certain file operations (e.g. by adding files/subfolders, removing files/subfolders)


Karl
avada
Senior Member
Senior Member
Posts: 217
Joined: 2007-10-05, 06:24 UTC

Post by *avada »

karlchen wrote:Go to Configuration => Copy/delete => General Copy + delete options and tick the option [x] Copy date/time of directories.
Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Keep in mind that when you change folder contents Windows will change its modify date anyway. :)
avada
Senior Member
Senior Member
Posts: 217
Joined: 2007-10-05, 06:24 UTC

Post by *avada »

MVV wrote:Keep in mind that when you change folder contents Windows will change its modify date anyway. :)
That's what makes it useful in my opinion. I usually sort them by date so I know which ones I changed the last time, or which are newly created.
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Keep in mind that when you change folder contents Windows will change its modify date anyway
Only for NTFS partitions, not for FAT partitions, which is most often used on for example USB sticks and memory cards.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
nicolai78
Junior Member
Junior Member
Posts: 3
Joined: 2023-04-01, 20:38 UTC
Location: Denmark

Re: TC not preserving folder date/time when copying/moving

Post by *nicolai78 »

Hi

The suggested solution is fine, but it seems this feature is broken, using TC v10.52.

I have tried this on both Windows 11 and Windows Server 2019. Same issue. The date/time for directories are not copied.

My expectation is the date/time from the source directory is synchronized to the target directory - including all subdirectories.

Can some either confirm this, or explain why is it working, just not like I expect?
User avatar
beb
Senior Member
Senior Member
Posts: 434
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: TC not preserving folder date/time when copying/moving

Post by *beb »

nicolai78 wrote: 2023-04-01, 20:46 UTC ...it seems this feature is broken, using TC v10.52.
I have tried this on both Windows 11 and Windows Server 2019. Same issue. The date/time for directories are not copied.
It does work on Windows 10.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC not preserving folder date/time when copying/moving

Post by *Dalai »

2nicolai78
Did you take everything into account that was posted in this thread, like enabling "Copy date/time of directories" in Options > Copy/Delete, all while keeping in mind that changes to existing directories - creating new files or deleting files from them - will change their timestamps?

Does copying a directory structure into an empty directory preserve timestamps for you?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply