enhance vfs path handling

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

View File

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