Page 1 of 1

Search for folders with certain files?

Posted: Wed Jun 12, 2019 9:08 pm
by ForeverFaithless
I'd like to retrieve a list of folders with a certain file called "Di M"

Please let me know if it's possible, thank you :)

Re: Search for folders with certain files?

Posted: Wed Jun 12, 2019 10:32 pm
by NotNull
ForeverFaithless wrote:
Wed Jun 12, 2019 9:08 pm
Please let me know if it's possible, thank you :)
Yes, that's possible.
Searching for
child:"Di M"
will give you all folders that contain one or more files/folders with "Di M" in their name.
Searching for
wfn:child:"Di M"
will give you all folders that contain a file/folder that is called *exactly* "Di M".


For more information on this (and a lot more .. ), see https://www.voidtools.com/support/everything/searching/

Re: Search for folders with certain files?

Posted: Wed Jun 12, 2019 10:48 pm
by ForeverFaithless
It's giving me a list of folders with subfolders called "DI M", is there a way to include a list of folders with files (and not folders) called "DI M" only?

Re: Search for folders with certain files?

Posted: Thu Jun 13, 2019 1:32 pm
by NotNull
So, you read and understood the whole page I linked in less than 16 minutes? ...


It is possible, but in a different way:
  • Go to Menu:Tools > Options > Context Menu
  • Select item Copy Path to Clipboard
  • Enable Show this item
  • Click OK
  • Search for
    file: wfn:"Di M"
  • Select all results from the result list
  • Righ-click > Copy Path to Clipboard
  • Paste results in Notepad (or similar)
  • Done

Optional: You can now remove Copy Path to Clipboard from the Everything context menu


EDIT: Suggestion: add a childfile: and childfolder: function.

Re: Search for folders with certain files?

Posted: Fri Jun 14, 2019 8:32 am
by void
EDIT: Suggestion: add a childfile: and childfolder: function.
Already added for the next major release.
Thanks for the suggestion.

Re: Search for folders with certain files?

Posted: Fri Jun 14, 2019 1:04 pm
by NotNull
void wrote:
Fri Jun 14, 2019 8:32 am
Already added for the next major release.
:thumbsup: :)

Re: Search for folders with certain files?

Posted: Mon Jun 24, 2019 6:04 pm
by whinette
Is it possible to get the size of the folder with a custom search?
For example, I'd like to get all the folder that contains a certain pattern and then have the size for this current pattern only. I am aware that it can result to slow search if size isn't indexed.

Re: Search for folders with certain files?

Posted: Wed Jun 26, 2019 7:24 am
by void
Is it possible to get the size of the folder with a custom search?
You will need to enable folder sizes:
  • In Everything, from the Tools menu, click Options.
  • Click the Indexes tab on the left.
  • Check Index folder size.
  • Click OK.
Folder sizes will be shown in the Size column.

To search for a folder with a specific size, use the size: search function. For example, to find folders with a size larger than 10gb, search for:
folder: size:>10gb

The next major version of Everything will have an option to search and display the true folder size without this information being indexed. However, it will be very slow. For now you will need to enable Index folder size.

Re: Search for folders with certain files?

Posted: Thu Jun 27, 2019 5:46 pm
by whinette
Thanks.
I was already indexing the folder size. The result is for all files indexed though, I should have wrote an example. :)
Let's say that I have multiples folder with size indexed.
I lookup for log files with `child:"*.log"`.
The result will display all folder that have some log file but the displayed size is the indexed size (with all others files), but what I look for is a display size with the current filter pattern.

If I understand correctly, the next version should do the trick! :)

Re: Search for folders with certain files?

Posted: Thu Jun 27, 2019 7:07 pm
by NotNull
whinette wrote:
Thu Jun 27, 2019 5:46 pm
If I understand correctly, the next version should do the trick! :)
If you are interested in the total accumulated size of all the .log files matching your query, you don't have to wait for a new version:
  • Enable the status bar: Menu:View > Status Bar
  • Enable Show size in status bar (under Menu:Tools > Options > General > View )
Now, when you search for
ext:log
, you will see the total size in the statusbar, similr to:
2019-06-27 20_50_18-ext_log - Everything.png

Re: Search for folders with certain files?

Posted: Thu Jun 27, 2019 8:09 pm
by whinette
Thanks. :)
I'm looking for the detail by folder though. I'll wait patiently the next major version and keep using scripts until then. ;)

Re: Search for folders with certain files?

Posted: Thu Jun 27, 2019 11:26 pm
by NotNull
whinette wrote:
Thu Jun 27, 2019 8:09 pm
I'm looking for the detail by folder though.
Ahh, wasn't clear to me.
In that case:
  • Make sure Index folder size is enabled (Menu:Tools > Options > Indexes)
  • Query
    ext:log
  • Export results as EFU file ( Menu:File > Export )
  • Press Alt-Home to reset search.
  • Open this EFU file (Menu:File > Open File List)
  • Query
    folder:
  • Voilà!

To return to your "regular" Everything:
  • Press Alt-Home
I'll wait patiently the next major version and keep using scripts until then. ;)
I might have misunderstood this too, but I think @void means something different.

Re: Search for folders with certain files?

Posted: Fri Jun 28, 2019 7:54 am
by whinette
That's perfect!
Thanks a bunch NotNull =)

Re: Search for folders with certain files?

Posted: Sat Jun 29, 2019 6:42 pm
by NotNull
You're welcome! :)
(thanks for reporting back)