Frontend created and rewritten a few times, with some backend fixes #1
|
@ -87,15 +87,7 @@ def format_du():
|
||||||
|
|
||||||
def format_tree():
|
def format_tree():
|
||||||
root = tree[""]
|
root = tree[""]
|
||||||
return msgspec.json.encode(
|
return msgspec.json.encode({"root": root}).decode()
|
||||||
{
|
|
||||||
"update": [
|
|
||||||
UpdateEntry(
|
|
||||||
key=root.key, size=root.size, mtime=root.mtime, dir=root.dir
|
|
||||||
),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
).decode()
|
|
||||||
|
|
||||||
|
|
||||||
def walk(path: Path) -> DirEntry | FileEntry | None:
|
def walk(path: Path) -> DirEntry | FileEntry | None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user