forked from indymedia/epicyon
Create notes directory
parent
697de38d9f
commit
686272c40d
|
@ -1085,8 +1085,11 @@ def setPersonNotes(baseDir: str, nickname: str, domain: str,
|
||||||
return False
|
return False
|
||||||
if handle.startswith('@'):
|
if handle.startswith('@'):
|
||||||
handle = handle[1:]
|
handle = handle[1:]
|
||||||
notesFilename = baseDir + '/accounts/' + \
|
notesDir = baseDir + '/accounts/' + \
|
||||||
nickname + '@' + domain + '/notes/' + handle + '.txt'
|
nickname + '@' + domain + '/notes'
|
||||||
|
if not os.path.isdir(notesDir):
|
||||||
|
os.mkdir(notesDir)
|
||||||
|
notesFilename = notesDir + '/' + handle + '.txt'
|
||||||
with open(notesFilename, 'w+') as notesFile:
|
with open(notesFilename, 'w+') as notesFile:
|
||||||
notesFile.write(notes)
|
notesFile.write(notes)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue