empty: 2.0 (?)

Discussion related to "Everything" 1.5 Alpha.
Post Reply
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

empty: 2.0 (?)

Post by NotNull »

As the empty: function does not detect alternate datastreams of a folder [1], an alternative:

Code: Select all

online:empty:    fromdisk:total-size:0    <!fromdisk:alternate-data-stream-count: | fromdisk:alternate-data-stream-count:0>
The !fromdisk:alternate-data-stream-count: is needed to cater to non-NTFS volumes.
I guess online:empty: fromdisk:total-size:0 !fromdisk:alternate-data-stream-count: should work too, but is not tested.



[1] test with the followingf CMD commands

Code: Select all

md empty_folder
echo some text > empty_folder:datastream1.txt
dir /r folder
Post Reply