RC1Bug: Move Dirs with option "Copy Date/time o directo
Moderators: Hacker, petermad, Stefan2, white
RC1Bug: Move Dirs with option "Copy Date/time o directo
Hi,
Reproduce:
a) set the option "Copy Date/Time of directories"
b) move a directory-structure from one drive to another
--> Bug: date/time is only copied for root-directory not for subdirectories deeper in the directory structure.
Jens
Reproduce:
a) set the option "Copy Date/Time of directories"
b) move a directory-structure from one drive to another
--> Bug: date/time is only copied for root-directory not for subdirectories deeper in the directory structure.
Jens
Confirmed (partly), but does only occur:
- on move to a different drive letter (no matter if that is on the same physical disk or not) and
- for all directories containing files and/or subdirs, the actual system date/time is assigned (instead of keeping the original date/time, as set in options)
Also applies to directories directly moved from root, not only their subdirs.
For empty directories their date/time is kept correct (unchanged).
The copy-function seems to be completely OK.
Screenshot
Same behaviour in TC 6.56.
- on move to a different drive letter (no matter if that is on the same physical disk or not) and
- for all directories containing files and/or subdirs, the actual system date/time is assigned (instead of keeping the original date/time, as set in options)
Also applies to directories directly moved from root, not only their subdirs.
For empty directories their date/time is kept correct (unchanged).
The copy-function seems to be completely OK.
Screenshot
Same behaviour in TC 6.56.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
Sounds logical. Perhaps the move function could (after copying the files) get the date/time information from the old directory before deleting it?If a new file is created in a directory, Windows does change the date/time of this directory.
I guess the well-working copy-function does this the same way then?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC already sets the directory time AFTER copying/moving all files in it. Unfortunately the disk cache can write the data long after Windows has reported successful copying, so Windows can re-set the date to the current date AFTER Total Commander has set the directory date.
Time line:
1. TC creates the directory
2. TC tells windows to copy/move the files to it
3. TC sets the directory time
4. Windows finishes copying the data and resets the directory time
I don't see any solution for this problem.
Time line:
1. TC creates the directory
2. TC tells windows to copy/move the files to it
3. TC sets the directory time
4. Windows finishes copying the data and resets the directory time
I don't see any solution for this problem.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hm, I wonder why the copy function works better then.
Is your code using the same function for moving as for copying (and deletes the files afterwards)?
If you use different functions: Maybe the windows caching works in different ways for the used copy function and the move function?
Is your code using the same function for moving as for copying (and deletes the files afterwards)?
If you use different functions: Maybe the windows caching works in different ways for the used copy function and the move function?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, when moving between two disks, the functions are the same.
When moving within a disk, it's the same as renaming in place, so no file is really copied. I do not get a changed directory date in this case...
When moving within a disk, it's the same as renaming in place, so no file is really copied. I do not get a changed directory date in this case...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com