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.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/hercules/code/server/utils.py b/hercules/code/server/utils.py
new file mode 100644
index 0000000..922cf5b
--- /dev/null
+++ b/hercules/code/server/utils.py
@@ -0,0 +1,11 @@
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2014 Evol Online
+# Author: Andrei Karas (4144)
+
+from code.fileutils import *
+
+def cleanServerData():
+ removeAllFiles("newserverdata")
+ makeDir("newserverdata/conf")
+ makeDir("newserverdata/db")