Mailinglist Archive: opensuse-buildservice (120 mails)
| < Previous | Next > |
[opensuse-buildservice] lots of empty directories/trees on download.opensuse.org
- From: Jon Nelson <jnelson-suse@xxxxxxxxxxx>
- Date: Fri, 8 Jul 2011 09:34:19 -0500
- Message-id: <CAKuK5J1BORd1jcoNbko24UhnHmFXDyDD+teViJBYzwzHFomg4g@mail.gmail.com>
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
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 > |