1

I don't want to delete them, just find them.

Displaying them graphically, as a tree, or a list is enough.

6

I found the simplest answer here - built in to Windows.

If you do want to delete all the empty folders only, go to Computer and at the top right click on search. Click on kind and Select folder, now click again on search and click on size, select 0 and click on search.

That worked for me.

3
  1. Install Python selecting the option to add it to your path
  2. Open a command prompt
  3. cd to your starting point
  4. type: python
  5. type in the following, (indenting is important):
import os
for (root, dirs, files) in os.walk('.'):
    if len(dirs)+len(files) == 0:
        print (root)

You will get the list starting from where you are.

  • The above is free, gratis & open source
  • It will work on just about any platform
  • Note that if you wish to start from a specific directory you an by changing os.walk('.') to os.walk(r'C:\Some\Dir') the r is important if you would like to use \ rather than /
  • 1
    Lols - I never thought of coding it myself :-) – Mawg Sep 4 '16 at 12:10
1

You can use Ffind Ext.

  1. Type: d
  2. Empty

Find empty directories - Ffind Ext

0

There's a tool with the self-explanatory name Remove Empty Directories.

main screen

  • Please read questions carefully. The original question clearly states that the OP doesn't want to delete those folders. – Hashim Nov 28 '16 at 0:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.