Find Empty Folders

Javascript renaming examples. Javascript renaming is supported in version 3 or newer.

Find Empty Folders

Postby jwc » Mon Aug 21, 2017 11:57 am

I have more than 1000 folders in my music directory. How can I search for folders that are EMPTY, so that I can DELETE them? Thank you.
jwc
 
Posts: 9
Joined: Thu Jan 19, 2017 9:36 am

Re: Find Empty Folders

Postby therube » Mon Aug 21, 2017 12:47 pm

Everything
(Tools | Options | Indexes -> Index folder size [if that is not a default?])

Most basically:

folder: size:0


I use, a lot:

childfoldercount:>=0 size:0 parents:2

adjusting the setting of parents:, which finds the top most "empty" (including 0-byte files) directory trees, 2 (the parents setting) levels deep.

So: C:\TMP\ (& subdirectories thereof) or C:\OUT\ ...

Do verify that the selected trees are empty by doing an Alt+Enter on the particular directories.


A setting of parents:6 finds:

E:\Users\therube\AppData\Local\Temp\SAL458.tmp
&
E:\Windows\System32\Tasks\Microsoft\Windows\RemovalTools

(The latter is not something you would want to remove.
IOW some directores are expected to be there, even if empty.)
therube
 
Posts: 346
Joined: Mon Jan 18, 2016 6:23 pm

Re: Find Empty Folders

Postby jwc » Wed Aug 23, 2017 12:02 am

Forgive the stupid question, but do you run this in Windows 10 File Explorer, or in Bulk Rename Utility??? Thank you. JoeJCherner@usa.net
jwc
 
Posts: 9
Joined: Thu Jan 19, 2017 9:36 am

Re: Find Empty Folders

Postby jwc » Wed Aug 23, 2017 12:59 am

Thank you for your suggestion, but I don't believe in works in the current version of Windows 10.
jwc
 
Posts: 9
Joined: Thu Jan 19, 2017 9:36 am

Re: Find Empty Folders

Postby therube » Wed Aug 23, 2017 4:59 pm

Everything is a stand-alone utility.
It works well, for everything.
You can even use it in conjunction with BRU.

I don't have Win10, but am unaware of any issues with running Everything on Win10.
therube
 
Posts: 346
Joined: Mon Jan 18, 2016 6:23 pm

Re: Find Empty Folders

Postby Panchdara » Fri Aug 25, 2017 7:37 am

therube wrote:I don't have Win10, but am unaware of any issues with running Everything on Win10.


Seems to work fine with Win10.
Panchdara
 
Posts: 32
Joined: Sat Jan 09, 2016 7:25 pm

Re: Find Empty Folders

Postby jwc » Sat Oct 07, 2017 9:34 am

Just checking to see if there is anything new added to BRU that would allow me to find empty folders on my hard drive?
jwc
 
Posts: 9
Joined: Thu Jan 19, 2017 9:36 am


Return to Javascript Renaming


cron