Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3926

TC11.x bug reports (English) • Re: Search including \subdir\subdir\ not working

$
0
0
22.10.24 Added: Find files: *.ext | \ will find files with extension ".ext" in subdirectories but not the base directory of the search (32/64)
..
17.10.24 Fixed: Find files: \**\ at the end of a search string was interpreted as \*\ (exactly one directory) (32/64)
17.10.24 Fixed: Find files: \**\ in the middle of a search string was sometimes treated as 0 or more directories, sometimes as 1 or more. Now it's always 0 or more (32/64)
17.10.24 Fixed: Find files: Ignore/Remove \**\ or **\ at the start if a search name, searching for \**\dir\*.ext is the same as dir\*.ext (32/64)
17.10.24 Fixed: Find files: when searching for a single backslash \ (meaning limit to current directory) we don't need to search all subdirectories (32/64)
Tested OK using TC 11.50b3 32-bit and 64-bit. I wasn't able to find something that didn't work.

So using traverse filters is implemented such that subfolders are traversed into if they match a traverse filter, but when a match is encountered the folder is traversed into but not its subfolders. If you want to include subfolders as well you will have to add **\

Example:

Find all files/folders in folders named "totalcmd"

Code:

Search for: totalcmd\ | \Search in: c:\
Find all files/folders in folders named "totalcmd" and include all the subfolders

Code:

Search for: totalcmd\**\ | \Search in: c:\
Without using traverse filters (slower):

Code:

Search for: totalcmd\*Search in: c:\

Code:

Search for: totalcmd\**\*Search in: c:\

It should be added to the help page "Find files: General" that \**\ in a path means zero or more subfolders.

Statistics: Posted by white — 2024-10-23, 23:30 UTC



Viewing all articles
Browse latest Browse all 3926