diff --git a/src/components/FileBrowser.tsx b/src/components/FileBrowser.tsx index 7427600..f33a6bc 100644 --- a/src/components/FileBrowser.tsx +++ b/src/components/FileBrowser.tsx @@ -19,7 +19,11 @@ import pathRename from "../functions/pathRename" function uriToPath(pathname:string) { // strip the "/f" from e.g. "/f/dir1/dir2" - return pathname.substr(2) + const path = pathname.substr(2) + if (!path.endsWith("/")){ + return path + "/" + } + return path } function pathToUri(path:string) {