summaryrefslogtreecommitdiff
path: root/hercules/code/fileutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/code/fileutils.py')
-rw-r--r--hercules/code/fileutils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hercules/code/fileutils.py b/hercules/code/fileutils.py
index 2cf106b..a0635d4 100644
--- a/hercules/code/fileutils.py
+++ b/hercules/code/fileutils.py
@@ -70,6 +70,10 @@ def makeDir(path):
if not os.path.exists(path):
os.makedirs(path)
+def removeDir(path):
+ if os.path.exists(path):
+ shutil.rmtree(path)
+
def removeAllFiles(path):
if os.path.exists(path):
shutil.rmtree(path)