[bitbake-devel] [PATCH] utils: Use rm -rf in remove()

Chris Larson clarson at kergoth.com
Fri Feb 8 01:08:48 UTC 2013


On Thu, Feb 7, 2013 at 4:55 PM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> -                shutil.rmtree(name)
> +                # shutil.rmtree(name) would be ideal but its too slow
> +                subprocess.call('rm -rf %s' % path, shell=True)
>

This is a good idea, but I'm curious about forking off a shell process for
it. I'd think this would work as well: subprocess.call(['rm', '-rf', path])
-- 
Christopher Larson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20130207/d2d6dbcf/attachment-0001.html>


More information about the bitbake-devel mailing list