Implement note creation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user