Search for file attributes

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
User avatar
ebakker
Junior Member
Junior Member
Posts: 11
Joined: 2004-11-24, 09:41 UTC
Location: The Netherlands

Search for file attributes

Post by *ebakker »

I use Search (Alt-F7) to search for files with Archive attribute set.
- "Search for: |.svn\" --> don't search in subversion directory's.
- Tab Advanced, Attributes, checkbox Archive.

Press button "Feed to listbox".

Select All files (Ctrl-A)

Menu Files, Change Attributes
- Recurse directory's is TRUE.
- Checkbox Archive empty (FALSE).
Press OK button.

Check if File attribute is really cleared:
right mouseclick, properties. Seems okay.

Now comes the strange part:
I press Alt-F7 again (search) with the same search settings.
And I get the same file list!
This is not good, because the file attributes have changed.
Probably this list is cached into memory?

I use Windows 7 and Totalcommander v8.51a (both 64 bit).
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Search for file attributes

Post by *Dalai »

ebakker wrote:Now comes the strange part:
I press Alt-F7 again (search) with the same search settings.
And I get the same file list!
Did you actually hit "Search" again or did you just open the Search dialog without pressing "Search"? The former would be a bug while the latter is not (the list is cached and shown again for the user's comfort).

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
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Dalai, TC clears search results when you click 'feed to listbox', so the latter is not possible with given scenario.
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

2MVV
:oops: You're right. Never mind.

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
User avatar
ebakker
Junior Member
Junior Member
Posts: 11
Joined: 2004-11-24, 09:41 UTC
Location: The Netherlands

Post by *ebakker »

I pressed Search again indeed.
If I close TC and try again, the new search gives a "fresh" list, but the problem is still reproducable.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm 2ebakker's observation, if I do the second search while the file panel is showing the fed search result.

If I press BackSpace before I do the second search I get the correct result.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50547
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I don't quite understand the problem - when you press Alt+F7 again, the "search attributes" are cleared, so TC doesn't search by attributes any more on that second call.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I press Alt-F7 again (search) with the same search settings.
The problem is that after all archive attributes are removed in the fed to listbox list, and a new search is done from that list with the same settings i.e: Tab Advanced, Attributes, checkbox Archive - then the same result comes up even though no files should be found, since there is no files left with the archive bit set anymore.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

I can reproduce the problem with the following scenario (TC 8.51a 32-bit):

1) Create C:\Test folder and copy some files there - they will get Archive attributes automatically
2) Display C:\Test folder in BOTH panels and activate the right panel
3) Press Alt+F7, leave "Search for:" empty, go to "Advanced" tab and check "Attributes" -> "Archive", press "Start search" button
4) Press "Feed to listbox" button - now you have search results in the right panel
5) Select all results in the right panel and clear their Archive attributes by using "Files" -> "Change Attributes" menu

Now:
- if you repeat step 3) in the left panel, you will get empty result list - this is right, because there are no longer any files with Archive attribute in C:\Test,
- if you repeat step 3) in the right panel, you will get some results.

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

Post by *ghisler(Author) »

2petermad
When you press Alt+F7 again, search for attributes is NOT checked.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
I press Alt-F7 again (search) with the same search settings.
Of course that means: if you press Alt+F7 and activate the search for attributes again - try it and you will se that TC finds the same files again, even though their archive attributes has been cleared...

Just do as 2MarcinW has described.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply