Search for files in certain subdirs

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
rumba
Junior Member
Junior Member
Posts: 3
Joined: 2009-10-15, 13:14 UTC

Search for files in certain subdirs

Post by *rumba »

Hello,

Let's say I have something like this:

dirLevel1/randomdirLevel2/particulardir1Level3
dirLevel1/randomdirLevel2/particulardir1Level3
dirLevel1/randomdirLevel2/particulardir1Level3

dirLevel1/randomdirLevel2/particulardir2Level3
dirLevel1/randomdirLevel2/particulardir2Level3
dirLevel1/randomdirLevel2/particulardir2Level3

My end goal is to know how many files (of any kind) I have in all the Level 3 dirs. The Level 3 dirs have static names (two variations, but always static), Level 2 dirs have changing names, so I need to use some wildcard I guess, but I just can't come up with something that'd work.

Thanks in advance and I hope I've been able to explain the situation - if not I'll gladly elaborate on it.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

If you want to know a total number of files in level 3 subdirectories, you can do a search with plugin.
In TC's search dialog, select Plugin "tc", Property "path", OP "regex" and Value "path_to_dirLevel1\\.*\\.*\\.*" (without the quotes and of course, use the real path). Start the search and when it lists all files, look at the bottom of the dialog to see how many of them were found.
Windows 10 Pro x64, Windows 11 Pro x64
Post Reply