Mercurial > repos > rmarenco > hubarchivecreator
comparison util/cleanDirectory.py @ 1:fb5e60d4d18a draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 64cfc08088d11f6818c1b4e5514ef9e67969eaff-dirty
author | rmarenco |
---|---|
date | Wed, 13 Jul 2016 13:36:37 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:0f3bc17e5ede | 1:fb5e60d4d18a |
---|---|
1 #!/usr/bin/python | |
2 """Use to clean the directory after the run of HubArchiveCreator.py manually""" | |
3 import os | |
4 import shutil | |
5 | |
6 # Remove 'myHub.zip at root folder | |
7 try: | |
8 os.remove('myHub.zip') | |
9 except OSError as o: | |
10 # We don't need to crash the program | |
11 print 'Warning: ' + str(o) | |
12 | |
13 # Remove 'myHub' folder and its content | |
14 shutil.rmtree('myHub', ignore_errors=True) |