TC 10 doesn't find my folders

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
BlackMatrix
Junior Member
Junior Member
Posts: 5
Joined: 2023-06-23, 13:58 UTC

TC 10 doesn't find my folders

Post by *BlackMatrix »

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

Code: Select all

D:\Backup\...\...\packages
Any idea?
User avatar
white
Power Member
Power Member
Posts: 5807
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC 10 doesn't find my folders

Post by *white »

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.
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC 10 doesn't find my folders

Post by *Dalai »

NB: It's even simpler to use

Code: Select all

packages.
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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
BlackMatrix
Junior Member
Junior Member
Posts: 5
Joined: 2023-06-23, 13:58 UTC

Re: TC 10 doesn't find my folders

Post by *BlackMatrix »

Thank you both so much for your help :)
BlackMatrix
Junior Member
Junior Member
Posts: 5
Joined: 2023-06-23, 13:58 UTC

Re: TC 10 doesn't find my folders

Post by *BlackMatrix »

Dalai wrote: 2023-06-23, 15:40 UTC NB: It's even simpler to use

Code: Select all

packages.
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'?
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC 10 doesn't find my folders

Post by *Dalai »

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:

Code: Select all

.nuget*
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
BlackMatrix
Junior Member
Junior Member
Posts: 5
Joined: 2023-06-23, 13:58 UTC

Re: TC 10 doesn't find my folders

Post by *BlackMatrix »

Dalai wrote: 2023-06-23, 16:30 UTC

Code: Select all

.nuget*
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.
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC 10 doesn't find my folders

Post by *Dalai »

An exact match of

Code: Select all

.nuget
works just like that. Or isn't this the case for you?

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
BlackMatrix
Junior Member
Junior Member
Posts: 5
Joined: 2023-06-23, 13:58 UTC

Re: TC 10 doesn't find my folders

Post by *BlackMatrix »

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 :)
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC 10 doesn't find my folders

Post by *Dalai »

No, it's a normal character. The trailing dot

Code: Select all

packages.
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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: TC 10 doesn't find my folders

Post by *NotNull »

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>
User avatar
Dalai
Power Member
Power Member
Posts: 9963
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC 10 doesn't find my folders

Post by *Dalai »

Well, I was referring to the regular creation of files and directories, not the long path prefix.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply