Mailinglist Archive: opensuse-buildservice (120 mails)

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

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


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

< Previous Next >
This Thread
  • No further messages