English support forum
Moderators: Hacker , petermad , Stefan2 , white
BlackMatrix
Junior Member
Posts: 5 Joined: 2023-06-23, 13:58 UTC
Post
by *BlackMatrix » 2023-06-23, 14:06 UTC
I have TC 10 installed.
I search for:
^packages$
with Regex tick.
I tick
attributes
and untick all except
Directory
.
Image:
https://i.ibb.co/71JK59X/tc.png
I search in D: (HDD)
The result page finds:
Code: Select all
D:\FileHistory\...\...\AppData\Local\Packages
But it does not find
Any idea?
white
Power Member
Posts: 5807 Joined: 2003-11-19, 08:16 UTC
Location: Netherlands
Post
by *white » 2023-06-23, 15:06 UTC
Those are 3 state checkboxes where clear means the attribute must be absent, checked means the attribute must be present and the indeterminate state means the attribute is ignored. The indeterminate state may look like a blue box with a white minus sign which may be confusing.
Dalai
Power Member
Posts: 9963 Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)
Post
by *Dalai » 2023-06-23, 15:40 UTC
NB: It's even simpler to use
in the "Search for" field without RegEx. As soon as the search term contains a dot, TC will search for exact matches (instead of doing a glob search).
Regards
Dalai
BlackMatrix
Junior Member
Posts: 5 Joined: 2023-06-23, 13:58 UTC
Post
by *BlackMatrix » 2023-06-23, 15:42 UTC
Thank you both so much for your help
BlackMatrix
Junior Member
Posts: 5 Joined: 2023-06-23, 13:58 UTC
Post
by *BlackMatrix » 2023-06-23, 16:26 UTC
Dalai wrote: 2023-06-23, 15:40 UTC
NB: It's even simpler to use
in the "Search for" field without RegEx. As soon as the search term contains a dot, TC will search for exact matches (instead of doing a glob search).
Regards
Dalai
How to search for folders that start with a dot e.g. '.nuget'?
Dalai
Power Member
Posts: 9963 Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)
Post
by *Dalai » 2023-06-23, 16:30 UTC
You mean a glob search for directories containing a dot? In this case you have to tell TC that you want a glob matching by adding the wildcard(s) yourself:
Regards
Dalai
BlackMatrix
Junior Member
Posts: 5 Joined: 2023-06-23, 13:58 UTC
Post
by *BlackMatrix » 2023-06-25, 14:49 UTC
Dalai wrote: 2023-06-23, 16:30 UTC
I mean an exact match of '.nuget' as a directory. It seems to me that the exact search is much faster than a wildcard/Regex search. The 'packages.' worked quite well for exact 'packages' matches but '.nuget' contains a dot already in the name.
Dalai
Power Member
Posts: 9963 Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)
Post
by *Dalai » 2023-06-25, 15:59 UTC
An exact match of
works just like that. Or isn't this the case for you?
Regards
Dalai
BlackMatrix
Junior Member
Posts: 5 Joined: 2023-06-23, 13:58 UTC
Post
by *BlackMatrix » 2023-06-25, 16:08 UTC
Ah okay, I got it. I thought '.' is a specific marker to tell TC that the search term has to be exact search. I read it wrong. Thanks again for your help
Dalai
Power Member
Posts: 9963 Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)
Post
by *Dalai » 2023-06-25, 16:19 UTC
No, it's a normal character. The trailing dot
is just a "trick" to make TC search for an exact match. Files and directory names can't have a trailing dot in their names.
Regards
Dalai
NotNull
Senior Member
Posts: 298 Joined: 2019-11-25, 20:43 UTC
Location: NL
Post
by *NotNull » 2023-06-25, 20:48 UTC
Dalai wrote: 2023-06-25, 16:19 UTC
Files and directory names can't have a trailing dot in their names.
Code: Select all
T:\dots>md "\\?\t:\dots\folder_with_dot."
T:\dots>set dummy=>"\\?\t:\dots\file_with_dot."
T:\dots>dir
Volume in drive T is RAMDISK
Volume Serial Number is 6898-80AC
Directory of T:\dots
25/06/2023 22:45 <DIR> .
25/06/2023 22:45 0 file_with_dot.
25/06/2023 22:45 <DIR> folder_with_dot.
1 File(s) 0 bytes
2 Dir(s) 589.553.664 bytes free
T:\dots>
Dalai
Power Member
Posts: 9963 Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)
Post
by *Dalai » 2023-06-25, 20:59 UTC
Well, I was referring to the regular creation of files and directories, not the long path prefix.