Page 1 of 1
File > Search > Subfolder filter : regex on full path
Posted: 27.08.2014, 10:26
by kino
Hello,
It would be nice to provide a search upon the (optionnally) whole path string, including backslashes separators (escaped \\)
e.g. ~/
\d{8}\\APP\d/ matching the following directories :
- .\20140331\APP1\myfile.txt
.\whatever\20140430\APP2\whatever\myfile.csv
etc.
Thanks.
(FC is already cool without
)
Re: File > Search > Subfolder filter : regex on full path
Posted: 06.10.2014, 17:26
by kino
It looks like I only had to wait until build 673 (thanks !)
However, It might be a little buggy because with my very same use case, only myfile.txt comes out of the search whereas myfile.csv should also be a candidate.
Even only with date filter \d{8} won't it work
(both 32/64 ; I also tried .*?\d{8}.* just in case)
So I just opened a beta bug report ticket :
viewtopic.php?f=7&t=6232&sid=978d989eee ... 826#p19706
Re: File > Search > Subfolder filter : regex on full path
Posted: 24.10.2014, 13:24
by kino
Fixed in build 674
THANK YOU !
Re: File > Search > Subfolder filter : regex on full path
Posted: 24.10.2014, 22:40
by afh
Is there any help for this filter?
I don't understand how it works...
Let's say I want to find all pdf files in my D:\ drive that are in subfolders called "Original":
it doesn't work...
I tried also:
but the result is wrong... I tried also "\*Original\*.pdf" in filename inputbox (so without a space)... it doesn't work...
I don't get it
Re: File > Search > Subfolder filter : regex on full path
Posted: 26.10.2014, 09:34
by Timon
Use in File Name: "\*Original; *.pdf" or "*.pdf; \*Original" (without quotes). Works fine for me.
Re: File > Search > Subfolder filter : regex on full path
Posted: 26.10.2014, 16:08
by afh
Timon wrote:Use in File Name: "\*Original; *.pdf" or "*.pdf; \*Original" (without quotes). Works fine for me.
Thanks a lot, Timon.
I was missing ";" (multiple item divider).
Re: File > Search > Subfolder filter : regex on full path
Posted: 29.09.2015, 03:50
by Headless Monkeyman
Thanks Timon! I ran across this and it solved something related that had been bugging me for years!
Regression ? -> Search > Subfolder filter : regex on full pa
Posted: 09.10.2016, 21:26
by kino
Hello,
It seems that "Subfolder filter" feature doesn't work (any longer) at all as of Build 729 32-bit.
I have a deep folder tree of documents where I drop files to be sorted in a bunch of "SORT" subfolders spread all around the hierarchy (to be sorted later).
I would like to find files that still are to be sorted, that is, files belonging to a "SORT" subfolder.
I should be able, putting "SORT" in the "Subfolder filter" field to bring at least files belonging so some sub-hierarchy of folders whose name contains "SORT".
Unfortunately, it yields the whole tree content.
I have tried about all the possible combination of "Use for" (this, this & subs, subs), Regex and "Use for full subfolder path" (for peace of mind I even adapted my regex to ".*?SORT.*") but the result is the same (no actual filter).
Can you reproduce this behavior ?
Thanks
Re: File > Search > Subfolder filter : regex on full path
Posted: 09.10.2016, 22:47
by Marek
Could you make small example, zip the folder structure with files and send me?
Describe what you want to search.
Re: File > Search > Subfolder filter : regex on full path
Posted: 05.11.2016, 19:12
by kino
Hi Marek,
I'm sorry (for myself
) I haven't seen your almost immediate reply.
Case is quite simple, two files in subdirs of MyDir (can't upload zip files in this forum apparently nor unknown extensions nor fake image) :
D:\Temp\Mydir\MySub\MyFile.txt
D:\Temp\Mydir\Another\MyOtherFile.txt
(I used FC search at location D:\Temp\Mydir without parameters to get the above plus the two sub-folders) :
I would like to filter on path with substring "Sub" to find "MyFile.txt" or "Anot" to find "MyOtherFile.txt"
N.B. : I think there is some kind of persistance in the resultset because I have had unrepeatable results sometimes.
1/ filter "Sub" (without jockers)
Bring everything (doesn't filter anything) :
So I guess jockers are needed but I would expect in this case that neither files nor directories would show up in the resultset
2/ filter "*Sub*"
Seems to bring the expected result :
BUT weirdly, I have to click twice on Find from a restarted FC otherwise, I still had the previous result
Re: File > Search > Subfolder filter : regex on full path
Posted: 05.11.2016, 19:18
by kino
3/ filter "Anot"
Persistence again : my resultset doesn't change rather than filtering like expected (or filtering out everything)
n.b. "Anot*" will filter as expected
4/ regex filter ".*?Sub.*" (ungreedy before Sub)
won't do either on folder name :
or full path :
"Sub" alone (which is an acceptable regex ?) won't filter any better
Besides, I do not fully understand the semantics of Subfolder filter "Use for: " this vs. this & subfolders vs. subfolders (?)
I haven't found any hints neither in the online documentation nor in the .chm help file (btw : it would be super nice if help files could be date-tagged as builds are)
fyi : I'm now using Build 730 32-bit
Thank you.
Re: File > Search > Subfolder filter : regex on full path
Posted: 10.12.2016, 07:55
by kino
> Important changes and bug fixes in the release 731
> - Changed: Subfolder filter in search dialog simplified
Happy with that.
Thank you.