add cleaning script

This commit is contained in:
Arvid Norberg 2013-05-10 17:10:56 +00:00
parent 30683d4bde
commit b925534c59
1 changed files with 25 additions and 0 deletions

25
clean.py Normal file
View File

@ -0,0 +1,25 @@
import os
to_delete = [
'session_stats',
'libtorrent_logs*',
'round_trip_ms.log',
'dht.log',
'upnp.log',
'natpmp.log',
'bin'
]
directories = [
'examples',
'test',
'.',
'tools'
]
for d in directories:
for f in to_delete:
path = os.path.join(d, f)
print path
os.system('rm -rf %s' % path)