diff options
Diffstat (limited to 'hercules/code/fileutils.py')
-rw-r--r-- | hercules/code/fileutils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hercules/code/fileutils.py b/hercules/code/fileutils.py index 150cb8c..884768f 100644 --- a/hercules/code/fileutils.py +++ b/hercules/code/fileutils.py @@ -60,3 +60,7 @@ def saveFile(fileName, data): def makeDir(path): if not os.path.exists(path): os.makedirs(path) + +def removeAllFiles(path): + if os.path.exists(path): + shutil.rmtree(path) |