Synchronize doesn't copy date/time of dirs when this is set

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Synchronize doesn't copy date/time of dirs when this is set

Post by *alm »

When under Operation->Copy+Delete options->Copy date/time of directories is set, TC does not copy the date&time of directories when synchronizing a folder (with subfolders) to another folder or disk/partition. Folders get the current date&time not the date&time of the source. Files are ok.

I would expect that when this function is set it would copy the date&time of folders in any function?

A normal copy does show the expected behaviour.

TC used is 7.04a.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Does it create the folders anew or does it just copy files into them?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

The folder does not exist on the destination before the synchronization.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sync currently doesn't compare any directories at all. It copies only files, and creates directories on demand if they are missing, but needed to copy a file.
Author of Total Commander
https://www.ghisler.com
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

Do you have plans to make it work like I was thinking, or maybe as an option just before the actual sync (in the menu where you also set sync options)? Something like: also sync folders.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.5 will be able to sync also (empty and non-existing) folders, not only files. However, currently I can't copy the date because when I then write a file to the folder, the date is changed to the current date by NTFS. It would have to be copied after all the files are copied too, something which I haven't had the time to implement yet.
Author of Total Commander
https://www.ghisler.com
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

How is it different from a copy action where you copy the folder and then the files in it? Or do you reset the dates later for the folders when the copy is done?

I mean with a copy action a normal copy (F5) instead of the sync copy. But with the copy date&time option still set ofcourse.

I understand that when the folder already exists in the destination that it can be a different story, for me it's only important for newly created folders that did not exist before the sync.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

With F5 it's easy:
1. Create folder
2. Copy (recursively) everything to it
3. Copy folder date

Unfortunately it's not that easy with sync because the user can check/uncheck files (and in TC 7.5 also folders) at will.
Author of Total Commander
https://www.ghisler.com
Post Reply