find options -empty and -delete
stuff at decentral.ch
Tue Sep 10 21:29:20 UTC 2019
On 9/10/19 10:03 PM, Aaro Koskinen wrote:
> On Tue, Sep 10, 2019 at 06:29:02PM +0200, Tim Tassonis wrote:
>> I just found out about a terribly convenient way to recursively delete empty
>> directories with find, using the options -empty and -delete
>> It seems current busybox does not support these, are there any plans to add
> Busybox already supports -delete. I have an old patch to add -empty, I'll
> post that.
Great, thank you very much, applied it on 1.30.1, ran it on a kernel
modules directory with no files in it and it was gone! The other
directory containing a symlink in build pointing to a directory stayed
with only that in it, so I guess all is really well.
More information about the busybox