diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-31 19:34:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-31 19:34:22 +0300 |
commit | be6e852a52610e5715a6cb87d606647e39a6b487 (patch) | |
tree | 9c4751dfe64fe655903832d68570f244cc79d9c9 /hercules/code/fileutils.py | |
parent | 746192af34a65504cb86a4eca068a8f0fbb361f5 (diff) | |
download | evol-tools-be6e852a52610e5715a6cb87d606647e39a6b487.tar.gz evol-tools-be6e852a52610e5715a6cb87d606647e39a6b487.tar.bz2 evol-tools-be6e852a52610e5715a6cb87d606647e39a6b487.tar.xz evol-tools-be6e852a52610e5715a6cb87d606647e39a6b487.zip |
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.
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) |