summaryrefslogtreecommitdiff
path: root/hercules/code/fileutils.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-22 21:21:35 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-22 21:21:35 +0300
commitd23e6e37dbaff0ba4d3ea61579db4e7494994fe1 (patch)
tree0c367f82cb5a5a86f0c24c761ece49bb267777c9 /hercules/code/fileutils.py
parent8cca5905c62c509e1cb15c307de23775b44db29b (diff)
downloadtools-d23e6e37dbaff0ba4d3ea61579db4e7494994fe1.tar.gz
tools-d23e6e37dbaff0ba4d3ea61579db4e7494994fe1.tar.bz2
tools-d23e6e37dbaff0ba4d3ea61579db4e7494994fe1.tar.xz
tools-d23e6e37dbaff0ba4d3ea61579db4e7494994fe1.zip
hercules: create map cache in new format (separate files *.mcache)s20180222
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)