enhance vfs path handling

This commit is contained in:
lxsang 2021-04-17 20:11:00 +02:00
parent fd4474d598
commit 2316994b94
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -355,7 +355,8 @@ namespace OS {
if (re === "") {
return;
}
this.genealogy = re.split("/");
this.genealogy = re.split("/").filter(s=> s!="");
this.path = this.genealogy.join("/");
if (!this.isRoot()) {
this.basename = this.genealogy[
this.genealogy.length - 1