fixed missing ending "/" in path
This commit is contained in:
parent
96e435a976
commit
825d0a778c
@ -19,7 +19,11 @@ import pathRename from "../functions/pathRename"
|
|||||||
|
|
||||||
function uriToPath(pathname:string) {
|
function uriToPath(pathname:string) {
|
||||||
// strip the "/f" from e.g. "/f/dir1/dir2"
|
// 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) {
|
function pathToUri(path:string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user