Add directory uploader

This commit is contained in:
2023-05-27 15:50:44 +02:00
parent 82ebf18cdb
commit 71538e5d7a
20 changed files with 565 additions and 150 deletions

View File

@@ -37,10 +37,7 @@ export const navigate = async (path, push_history) => {
let resp = await fs_get_node(state.root.id, path)
open_node(resp, push_history)
} catch (err) {
console.error(err)
let errj = JSON.parse(err)
if (errj.value === "path_not_found") {
if (err.value && err.value === "path_not_found") {
if (path !== "/" && path !== "") {
console.debug("Path", path, "was not found, trying to navigate to parent")
navigate(fs_split_path(path).parent, push_history)