fixed missing ending "/" in path

This commit is contained in:
Djeeberjr 2021-09-03 14:38:54 +02:00
parent 96e435a976
commit 825d0a778c

View File

@ -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) {