2013-05-10 19:10:56 +02:00
|
|
|
import os
|
|
|
|
|
|
|
|
to_delete = [
|
|
|
|
'session_stats',
|
|
|
|
'libtorrent_logs*',
|
|
|
|
'round_trip_ms.log',
|
|
|
|
'dht.log',
|
|
|
|
'upnp.log',
|
|
|
|
'natpmp.log',
|
2013-06-17 02:45:17 +02:00
|
|
|
'bin',
|
|
|
|
'test_tmp_*'
|
2013-05-10 19:10:56 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
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)
|
|
|
|
|