Mailinglist Archive: opensuse-buildservice (120 mails)

< Previous Next >
[opensuse-buildservice] lots of empty directories/trees on
I happened to notice quite some time ago (and noted it at that time)
that old packages and projects still have their hierarchy represented

It seems to me that something like this would work to remove them:

find /some/root -depth -type d -empty -exec rmdir {} \;

it wouldn't remove non-empty directories or any files, etc... but
would effectively remove empty directory trees, of which there are
quite a few.
If you wanted to know how many, just do this:

find /some/root -depth -type d -empty | wc -l

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages