A faster shutil.rmtree or maybe a command.

Giovanni Bajo noway at sorry.com
Tue Oct 11 11:53:49 CEST 2005


martijn at gamecreators.nl wrote:

> Sometimes I must delete 2 very big directory's.
> The directory's have a very large tree with much small file's in it.
>
> So I use shutil.rmtree()
> But its to slow.
>
> Is there a faster method ?


Is os.system("rm -rf %s" % directory_name) much faster?
-- 
Giovanni Bajo





More information about the Python-list mailing list