Synchronize doesn't copy date/time of dirs when this is set
Moderators: Hacker, petermad, Stefan2, white
Synchronize doesn't copy date/time of dirs when this is set
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com