Use os.path.join() for path concatenation

This commit is contained in:
flan 2017-10-28 19:02:07 +02:00
parent ceb931519d
commit b0cb424770

View File

@ -35,8 +35,9 @@ def adduser(username):
cursor.execute("INSERT INTO auth VALUES (?, ?)", (username, hash)) cursor.execute("INSERT INTO auth VALUES (?, ?)", (username, hash))
if not os.path.isdir(COLLECTIONPATH+username): colpath = os.path.join(COLLECTIONPATH, username)
os.makedirs(COLLECTIONPATH+username) if not os.path.isdir(colpath):
os.makedirs(colpath)
conn.commit() conn.commit()
conn.close() conn.close()