aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--user.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/user.py b/user.py
new file mode 100644
index 0000000..184a880
--- /dev/null
+++ b/user.py
@@ -0,0 +1,14 @@
+import os
+import os.path
+
+class User :
+ def __init__(self,jid):
+ self.jid = jid
+
+ @staticmethod
+ def createDirectory(jid):
+ os.mkdir(jid)
+
+ @staticmethod
+ def subscribed(name):
+ return os.path.exists(name) \ No newline at end of file