A faster shutil.rmtree or maybe a command.

M

martijn

H!

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 ?

I use FreeBsd 5.4.
 
G

Giovanni Bajo

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?
 
M

martijn

A little.

I think its yust to big to handle it.
I'm going to ask it in a freebsd forum, maybe they know how to speed
up.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top