summaryrefslogtreecommitdiff
path: root/hercules/code/server/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/code/server/utils.py')
-rw-r--r--hercules/code/server/utils.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/hercules/code/server/utils.py b/hercules/code/server/utils.py
new file mode 100644
index 0000000..ebbddf3
--- /dev/null
+++ b/hercules/code/server/utils.py
@@ -0,0 +1,12 @@
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2014 Evol Online
+# Author: Andrei Karas (4144)
+
+from code.fileutils import removeAllFiles, makeDir
+
+def cleanServerData():
+ removeAllFiles("newserverdata")
+ makeDir("newserverdata/conf")
+ makeDir("newserverdata/db/re/")
+ makeDir("newserverdata/npc/re/")