Understanding search for Empty FILES

Discussion related to "Everything" 1.5.
ChrisGreaves
Posts: 821
Joined: Wed Jan 05, 2022 9:29 pm

Understanding search for Empty FILES

Post by ChrisGreaves »

Please see also Understanding search for Empty FOLDERS
I am still a New User and want to obtain a list of files that are empty; in this sense by empty I mean ZERO bytes on disk.

Code: Select all

T: file: !size:>0
I am looking only at my data partition drive T:
I am looking specifically for files, not folders.
And NOT files whose size in bytes is Greater Than zero. I carried this over from the topic Understanding search for Empty FOLDERS, but I am still digesting that topic.

Selecting all the files (Ctrl+A) and then pressing Alt+Enter brings up a Windows Explorer pane as a check:-
EmptyFolder_08.png
I have noted that I have three files which, at times, I might consider "Empty"
EmptyFolder_03.png
The MSWord2003 DOCument and the Excel2003 workbook resulted from loading those applications and immediately using File, saveAs without doing any work at all.
Cheers, Chris
You do not have the required permissions to view the files attached to this post.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Understanding search for Empty FILES

Post by NotNull »

ChrisGreaves wrote: Sat Jun 29, 2024 3:21 pm I have noted that I have three files which, at times, I might consider "Empty"
Consider using the content: or fromdisk:content functions to find out if these files do not contain visible text.
(regarding visible: defined macros or pictures will not be detected, so might be tricky to be certain)
void
Developer
Posts: 19903
Joined: Fri Oct 16, 2009 11:31 pm

Re: Understanding search for Empty FILES

Post by void »

Please use size:0 for files.

!childsize:>0 is only needed for folders because this search is applied to each child file. -any child file that matches will cause the folder to match.
!childsize:>0 will be replaced with totalchildsize:0 in 1384a+



To find files with no content:

t: file: !content:

This will match binary files too, I recommend using it with a document filter:

t: doc: !content:
void
Developer
Posts: 19903
Joined: Fri Oct 16, 2009 11:31 pm

Re: Understanding search for Empty FILES

Post by void »

Everything 1.5.0.1384a replaces child-size: with total-child-size: