From a new user's point of view, someone who wants to reduce the number of empty folders to reduce folder-tree search time, the EMPTY: functions appears to be the safest. This will identify individual folders that contain no files of any sort (data files nor folder directory files) and seems to be a fool-proof way of tidying a partition.
Is that a correct interpretation?
Yes.
I recommend selecting the empty folders and pressing Alt + Enter to show the Folders Properties dialog.
Double check the folders are really empty.
This might be necessary if you are excluding files from your index.
T: childfoldercount: size:0 Still from a new user's point of view, this seems to offer a faster way of locating and then deleting entire folder trees that govern only empty files or folders.
Is that a correct interpretation?
Yes, this will show folders with zero or more 'empty' files.
where there is at least one child folder.
Please be careful deleting empty files. Sometimes empty files can be important.
Omit the childfoldercount: and use the following to show empty folders too:
T: folder: size:0
This method might be confusing as it will show all nested zero-sized folders.
For example:
c:\empty-folder\foldera\folderb\
folderc
c:\empty-folder\foldera\
folderb
c:\empty-folder\
foldera
c:\
empty-folder
You can delete these and Everything will work out that you really only want to delete c:\empty-folder
The results of the first search are 74, of the second search 23. The 74 empty folders will always be found within the 23 folder trees.
Is that a correct interpretation?
No. This may miss some of those empty folders. (where there's a file with size directly in the folder - a parent of the empty folder)
Please try the following instead:
T: childfoldercount: !childsize:>0
T: childfoldercount: childsize:0
The remaining three searches seem to this New User to be risky, if only because the result list can contain data files of non-zero length.
Is that a correct interpretation?
Depends what the user is trying to do.
I don't recommend using these to delete folders.
T: childfilecount: size:0
will find folders where there is at least one child file.
All the child files must have a size of 0.
There might be descendant files, consider:
T: descendantfilecount: size:0
T: child-file-count-from-disk:0
will find the child count from disk.
It's very slow.
I recommend only using it with child-file-count:
For example:
T: child-file-count:0 child-file-count-from-disk:0
This will confirm there are no child files (which might be necessary if you are excluding files from your index)
T: child-folder-count-from-disk:0
Same as above, but for folders.
I invite speculation on the remaining three searches based solely on the counts displayed in the table. That is, what can you infer from the relative values of 79, 1646, and 23610?
T: child-file-count-from-disk:0
There might be descendant files (files in subfolders)
It will only list folders where there's no direct file children.
T: child-folder-count-from-disk:0
This one lists folders with no subfolders on disk.
The folder may contain files.
There will be a lot of these.
In Short,
To find empty folders in your index, search for:
empty:
To find empty folders on disk, search for:
empty: child-count-from-disk:0