From d23e6e37dbaff0ba4d3ea61579db4e7494994fe1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Feb 2018 21:21:35 +0300 Subject: hercules: create map cache in new format (separate files *.mcache) --- hercules/code/fileutils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hercules/code/fileutils.py') 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) -- cgit v1.2.3-70-g09d2