order the list by deeper file date modification

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Michael REMY
Member
Member
Posts: 194
Joined: 2010-12-12, 10:05 UTC
Location: Amiens
Contact:

order the list by deeper file date modification

Post by *Michael REMY » 2013-05-29, 08:08 UTC

hi,

i don't know whevener it is a bug or a personal behavior or a missing feature, but i prefer to tell you.

i have a bunch of folders contening files (music files).
When i update a file inside a folder, then the date of the file is changing so i can order my files by update date with TC. right.

but, the parent folder date is not changed, then when i go up and order my folder by date, i don't see the newer-updated folder in good position.

Does TC can solve this situation ?
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.

User avatar
MVV
Power Member
Power Member
Posts: 8198
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2013-05-29, 09:20 UTC

TC itself can only sort dirs by their dates. However it is possible to use a plugin that will return deeper file date so you can sort dirs by this column. I don't know if someone had written such plugin though. Anyway it will be very slow to recursively enumerate every contents in order to retrieve such field.

There is another approach: you can fix folder dates according to their newest files' dates.
FixDate tool from this post (save as text and decode) may help here. Also you will need batch from this post in order to fix dates recursively. Batch is designed to be dragged to TC buttonbar and may fix dates for all selected dirs in a panel (and of course for all nested dirs because it changes their dates at first).
Benefit of such approach is that you need to enumerate files in your dirs only once and then simply sort by fixed modification dates (if you change some files you will need to fix dates again).

User avatar
sqa_wizard
Power Member
Power Member
Posts: 3413
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard » 2013-05-29, 19:29 UTC

To set the folder date to the newest file within folder and its subfolders just use SetFolderDate tool with TC.
#5767 Personal license

User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW » 2013-05-30, 01:26 UTC

On FAT filesystems, changes inside folder don't update the folder timestamp.

On NTFS filesystems, creating or deleting a file inside a folder updates the folder timestamp, but editing a file doesn't update the folder timestamp.

Total Commander doesn't modify this system behavior.

Michael REMY
Member
Member
Posts: 194
Joined: 2010-12-12, 10:05 UTC
Location: Amiens
Contact:

Post by *Michael REMY » 2013-05-30, 06:18 UTC

On NTFS filesystems, creating or deleting a file inside a folder updates the folder timestamp, but editing a file doesn't update the folder timestamp
any idea why microsoft choose that way ?
under linux it is not that way ! folder date change once a file is edited !
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.

User avatar
MVV
Power Member
Power Member
Posts: 8198
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2013-05-30, 07:34 UTC

Does linux change folder dates recursively up to the root?

User avatar
Dalai
Power Member
Power Member
Posts: 6396
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai » 2013-05-30, 09:08 UTC

MVV wrote:Does linux change folder dates recursively up to the root?
No, it doesn't, at least on ext3 (don't know about other FS). Ext3 changes timestamps of a directory as soon as a file inside it was changed, deleted or created, so it's almost identical to NTFS' behaviour.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

Michael REMY
Member
Member
Posts: 194
Joined: 2010-12-12, 10:05 UTC
Location: Amiens
Contact:

still the problem

Post by *Michael REMY » 2014-07-21, 05:46 UTC

hi,

i still encount the problem but in different way : i modify the IDtag of music mp3 file, then the file date change well. But the parent folder is not....
i have to rename my file to change the parent folder date...

does the 8.5x still have this issue ?
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36782
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-07-21, 14:05 UTC

This has nothing to do with Total Commander, the same happens in Explorer.
Author of Total Commander
http://www.ghisler.com

Michael REMY
Member
Member
Posts: 194
Joined: 2010-12-12, 10:05 UTC
Location: Amiens
Contact:

Post by *Michael REMY » 2014-07-21, 14:22 UTC

i do understand.

but if windows can do all TC can do, i would had not choose it :-)

i do understand it can make time to pre-read each file date before displaying the parent folder one.

But maybe it could be just an option and ONLY for the very end of the tree structure (so no problem for resources taken)

or at least a simple option (via button hit ) to read/fix on demand the folder date (better solution i think)
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.

User avatar
solid
Power Member
Power Member
Posts: 538
Joined: 2004-08-09, 11:20 UTC

Post by *solid » 2014-07-24, 12:23 UTC

As a workaround you can check nirsoft's folder_time_update

Michael REMY
Member
Member
Posts: 194
Joined: 2010-12-12, 10:05 UTC
Location: Amiens
Contact:

Post by *Michael REMY » 2014-07-24, 13:44 UTC

solid wrote:As a workaround you can check nirsoft's folder_time_update
nicetool !

it would be lovely if it was a feature of TC ...like in the contextual menu by selecting a folder.....
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.

User avatar
MVV
Power Member
Power Member
Posts: 8198
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2014-07-28, 10:09 UTC

Actually you can add any folder context menu items both in Windows and in TC internally.

Windows: regedit.exe, create e.g. key HKEY_CLASSES_ROOT\Directory\shell\mycmd, set its default value to anything you like (it is a title of your item), add subkey command and set its default key value to e.g. notepad.exe "%1\2.txt" (it is a command of your item) and check folder context menu.

TC: Files - Internal Associations, Add, Define, create search template for folders (only enable directory attribute and don't touch anything else) and save it, then add an action e.g. mycmd (it is a title) for this filetype by clicking New button in edit file type dialog and set action command to e.g. notepad.exe "%1\1.txt". Confirm all changes, test folder context menu.

Michael REMY
Member
Member
Posts: 194
Joined: 2010-12-12, 10:05 UTC
Location: Amiens
Contact:

ok

Post by *Michael REMY » 2014-07-28, 11:42 UTC

MVV wrote:Actually you can add any folder context menu items both in Windows and in TC internally.

Windows: regedit.exe, create e.g. key HKEY_CLASSES_ROOT\Directory\shell\mycmd, set its default value to anything you like (it is a title of your item), add subkey command and set its default key value to e.g. notepad.exe "%1\2.txt" (it is a command of your item) and check folder context menu.

TC: Files - Internal Associations, Add, Define, create search template for folders (only enable directory attribute and don't touch anything else) and save it, then add an action e.g. mycmd (it is a title) for this filetype by clicking New button in edit file type dialog and set action command to e.g. notepad.exe "%1\1.txt". Confirm all changes, test folder context menu.
yep, but it require the program cares about the paramters %1 you give him
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.

Post Reply