Skip to main content
added 8 characters in body
Source Link
Gareth
  • 18.9k
  • 15
  • 58
  • 69

Since cygwinCygwin comes with GNU find, you can do this:

find . -type d -empty -delete

find . -type d -empty -delete

orOr to avoid the noise when a folder no longer exists:

find . -type d -empty -execdir rmdir {} +

find . -type d -empty -execdir rmdir {} +

Since cygwin comes with GNU find, you can do this:

find . -type d -empty -delete

or to avoid the noise when a folder no longer exists:

find . -type d -empty -execdir rmdir {} +

Since Cygwin comes with GNU find, you can do this:

find . -type d -empty -delete

Or to avoid the noise when a folder no longer exists:

find . -type d -empty -execdir rmdir {} +
Source Link
Michael
Michael

Since cygwin comes with GNU find, you can do this:

find . -type d -empty -delete

or to avoid the noise when a folder no longer exists:

find . -type d -empty -execdir rmdir {} +