Search for folders with certain files?

General discussion related to "Everything".
Post Reply
ForeverFaithless
Posts: 2
Joined: Wed Jun 12, 2019 9:06 pm

Search for folders with certain files?

Post 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 :)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for folders with certain files?

Post 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/
ForeverFaithless
Posts: 2
Joined: Wed Jun 12, 2019 9:06 pm

Re: Search for folders with certain files?

Post 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?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for folders with certain files?

Post 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.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for folders with certain files?

Post by void »

EDIT: Suggestion: add a childfile: and childfolder: function.
Already added for the next major release.
Thanks for the suggestion.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for folders with certain files?

Post by NotNull »

void wrote: Fri Jun 14, 2019 8:32 am Already added for the next major release.
:thumbsup: :)
whinette
Posts: 7
Joined: Thu Aug 04, 2016 4:51 pm

Re: Search for folders with certain files?

Post 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.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for folders with certain files?

Post 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.
whinette
Posts: 7
Joined: Thu Aug 04, 2016 4:51 pm

Re: Search for folders with certain files?

Post 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! :)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for folders with certain files?

Post 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
2019-06-27 20_50_18-ext_log - Everything.png (89.96 KiB) Viewed 10507 times
whinette
Posts: 7
Joined: Thu Aug 04, 2016 4:51 pm

Re: Search for folders with certain files?

Post 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. ;)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for folders with certain files?

Post 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.
whinette
Posts: 7
Joined: Thu Aug 04, 2016 4:51 pm

Re: Search for folders with certain files?

Post by whinette »

That's perfect!
Thanks a bunch NotNull =)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for folders with certain files?

Post by NotNull »

You're welcome! :)
(thanks for reporting back)
Post Reply