Implement note creation

This commit is contained in:
2017-10-05 01:05:47 -06:00
parent ec6de719ab
commit e960c2d717
2 changed files with 22 additions and 3 deletions
+8 -3
View File
@@ -79,15 +79,20 @@ class StandardNotesFS(LoggingMixIn, Operations):
return len(data)
def create(self, path, mode):
path_parts = path.split('/')
note_name = path_parts[1]
now = datetime.utcnow().isoformat()[:-3] + 'Z' # hack
self.item_manager.createNote(note_name, now)
return 0
def chmod(self, path, mode):
return 0
def chown(self, path, uid, gid):
return 0
def create(self, path, mode):
return 0
def destroy(self, path):
return 0