Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

I have a file system as so;

containing folders in sequence such as.
A101, A102, A103......through to Z999. So a nice constant of [a-z][0-9][0-9][0-9]

I'd like to check for incorrectly 'nested' folders I.e. a drag and drop where for instance F:\workfiles looks like this;


And I'm 'missing' a folder which now resides;

I've done this previously with something close to;
File name: [a-z][0-9][0-9][0-9]
Look in: F:\Workfile\
Persistent Search Filter: F:\Workfile;-regex:(.*\)[5,5]
Attributes; folder 'on' (?)

I just want to return search of folders (not files) and just one folder deep to find these 'dropped' folders. I can't remember exactly how I did it before. Thanks in advance

by (35 points)

1 Answer

0 votes
Best answer

Persistent search filters are only really intended for search paths you want to permanently exclude, instead just add the 'filter' part to the Look In.


File name: [a-z][0-9][0-9][0-9]
Look in: F:\Workfile\;-:regex:(.*\\){5,};+:regex:[a-z][0-9][0-9][0-9]

I've actually used two filters:

-:regex:(.*\\){5,}              // Exclude paths deeper than 3
+:regex:[a-z][0-9][0-9][0-9]    // Only include parent paths that have the 'pattern'
by (31.3k points)
That is absolutely spot on and has worked exactly as expected. It's just one folder deep, the search is nice & quick and the results are very useful.  Many thanks for the speedy response.