Page 1 of 1

Search: Allow file name to contain path

Posted: 29.10.2015, 09:36
by larsen
I would like to be able to search for files by specifying part of the complete path of that file.

Reason is, I have several files "init.pp" in different sub-directories and I want to get the one that is inside a specific directory like this: "unknown_path\directory_I_know_already\init.pp".

I would then enter "directory_I_know_already\init.pp" into the "File name:" textbox.
I cannot put it into the "Folders" textbox because of the "unknown_path" component.

Re: Search: Allow file name to contain path

Posted: 29.10.2015, 11:15
by Timon
It is already implemented long time ago. You can make such searches in current FC XE version
In "File name:" just type:
init.pp;\*directory_I_know_already

See Wildcard Search: (there is a hint in search dialog)
; multiple item divider
-*.txt exclude all *.txt files
--*.* include files with '-' at the beginning
\*docs include *docs folders
-\*temp exclude *temp folders
Only one type is possible (include or exclude)

It works fine for me.

Re: Search: Allow file name to contain path

Posted: 29.10.2015, 12:08
by larsen
No, this doesn't work as you are searching for every "init.pp" in every directory plus the directory "directory_I_know_already" itself.
As a result, you get all the 100+ files named "init.pp" that are in the directories parallel to "directory_I_know_already".

Re: Search: Allow file name to contain path

Posted: 29.10.2015, 14:58
by afh
try to remove "*" from Timon example, like this: "init.pp;\directory_I_know_already"

Re: Search: Allow file name to contain path

Posted: 29.10.2015, 16:02
by larsen
yes, this indeed does work.
though, it's really not very intuitive compared to "directory_I_know_already\init.pp", so it would still be good if this was possible.

Re: Search: Allow file name to contain path

Posted: 29.10.2015, 21:04
by Timon
Simply change the order to: "\directory_I_know_already;init.pp"
It would be more intuitive.