From be6e852a52610e5715a6cb87d606647e39a6b487 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 31 Oct 2014 19:34:22 +0300 Subject: hercules: add basic support for converting npc scripts from evol to hercules. Can convert script line in npc scripts. Can create map_index.txt and map.conf based on npc dir. --- 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 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) -- cgit v1.2.3-70-g09d2