Count of files In folder Filter in a certain case

Discussion related to "Everything" 1.5 Alpha.
Post Reply
sk2107
Posts: 326
Joined: Sun Aug 07, 2022 8:48 pm

Count of files In folder Filter in a certain case

Post by sk2107 »

Hello,

I use the folder filter to monitor the count of files in folders, but I could not find out is how can get the count of files for a certain case.

For example :
folder: depth:0 will give the count of all files for each drive, now I want to extend the filter to display the count of files that have an MD5 hash only or the count of videos and picture files only and so on.

Best Regards
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Count of files In folder Filter in a certain case

Post by NotNull »

For example, to get the number of FLAC files on each drive:

Code: Select all

root:   descendant:*.flac   add-column:A;descendant-file-count:   A-label:="# flac files"   A:=descendant-occurrence-count:

2023-10-23 23_47_42-root_   descendant__.flac   add-column_A;descendant-file-count_  A-label__# flac.png
2023-10-23 23_47_42-root_ descendant__.flac add-column_A;descendant-file-count_ A-label__# flac.png (29.58 KiB) Viewed 5460 times

Don't know how to approach your MD5 case.
Last edited by void on Mon Oct 23, 2023 10:21 pm, edited 1 time in total.
Reason: edit: A-label:="# flac files"
sk2107
Posts: 326
Joined: Sun Aug 07, 2022 8:48 pm

Re: Count of files In folder Filter in a certain case

Post by sk2107 »

Thank you. this is interesting.

Best Regards
sk2107
Posts: 326
Joined: Sun Aug 07, 2022 8:48 pm

Re: Count of files In folder Filter in a certain case

Post by sk2107 »

Hello everybody,

I tried to solve this case but still no progress from my side, this filter is ok but I could not get it to filter md5: property instead of *.flac

Code: Select all

root:   descendant:*.flac   add-column:A;descendant-file-count:   A-label:="# flac files"   A:=descendant-occurrence-count:
Any suggestion is highly appreciated.

Regards
void
Developer
Posts: 16777
Joined: Fri Oct 16, 2009 11:31 pm

Re: Count of files In folder Filter in a certain case

Post by void »

Everything doesn't have a method to count the number of files with an md5 property.

Wouldn't all your files have an md5 property?
(or are you looking at files which might still be gathering this information)

Can you use the child file count property?
sk2107
Posts: 326
Joined: Sun Aug 07, 2022 8:48 pm

Re: Count of files In folder Filter in a certain case

Post by sk2107 »

Hi,

I am looking at files which might still be gathering this information.

I tried child file count property, but it did not work (maybe I did not use it properly).

Regards
void
Developer
Posts: 16777
Joined: Fri Oct 16, 2009 11:31 pm

Re: Count of files In folder Filter in a certain case

Post by void »

You could do this with two passes:

Search for the following:

md5:
-or-
*.flac md5:
(if you're only interested in flac files)

From the File menu, click Export....
Choose a filename and click Save.

From the File menu, click Open File List....
Choose your file list from above and click Open.

The following will show the gathered md5 counts.
root: add-column:descendant-file-count
-or-
folder: add-column:descendant-file-count
sk2107
Posts: 326
Joined: Sun Aug 07, 2022 8:48 pm

Re: Count of files In folder Filter in a certain case

Post by sk2107 »

I already did something like that , but the thing is that I want to monitor the progress (at most to press F5 to refresh) showing a summary list contains: drive letter ,total size, number of file.

in this search:


root: descendant:*.flac add-column:A;descendant-file-count: A-label:="# flac files" A:=descendant-occurrence-count:

if there is a way to include something like descendant: to work with properties also.

what I am doing now is listing with filter md5: file: and check the status bar.
Post Reply