+1 vote

I would like to find all folders which are empty, ie do not have any files or subfolders in them, is that possible?

by (30.1k points)

1 Answer

–1 vote

Yes, using a script you can do that.

Step 1. Limit the search to only folders

Set the file name expression type to be Folders Only.

Folders Only option

Step 2. Pick the empty_folders.js script

Go to the Scripting Tab and activate the File name script. Pick the empty_folders.js script which is installed into the Sample Scripts folder, usually here:

C:\Program Files\Mythicsoft\FileLocator Pro\Sample Scripts\empty_folders.js

Click the Test button to make sure it works.

enter image description here

Step 3. Run the search

Now when you run the search you should find that only empty folders are found.

by (30.1k points)
...