Add move operation, fix fuse server

This commit is contained in:
Andrew Mulbrook 2026-03-28 13:25:25 -05:00
parent 41480a39c9
commit 6470aee802
5 changed files with 90 additions and 45 deletions

View file

@ -33,6 +33,10 @@ class ErrorNotEmpty(ErrorWithErrno):
def __init__(self, *args):
super().__init__(errno.ENOTEMPTY, *args)
class ErrorBadType(TypeError):
"""Raised when an invalid type is encountered."""
...
class BadNoteType(TypeError):
"""Raised when an invalid note type is encountered."""
@ -159,6 +163,10 @@ class Trove(Protocol):
"""Retrieve a note by a object id"""
...
def move(self, src_parent: Note, src_name: str, dst_parent: Note, dst_name: str, overwrite: bool):
"""Move a child note to a new location."""
...
def create_blob(self, data: bytes | None = None) -> Note:
"""Create a new blob node at the given path with content"""
...