From b925534c595bc9853fba14dd23195f85ecf9f07c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 10 May 2013 17:10:56 +0000 Subject: [PATCH] add cleaning script --- clean.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 clean.py diff --git a/clean.py b/clean.py new file mode 100644 index 000000000..2c2b47770 --- /dev/null +++ b/clean.py @@ -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) +