mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-02-21 17:32:47 +01:00
enhance vfs path handling
This commit is contained in:
parent
fd4474d598
commit
2316994b94
Binary file not shown.
@ -355,7 +355,8 @@ namespace OS {
|
|||||||
if (re === "") {
|
if (re === "") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.genealogy = re.split("/");
|
this.genealogy = re.split("/").filter(s=> s!="");
|
||||||
|
this.path = this.genealogy.join("/");
|
||||||
if (!this.isRoot()) {
|
if (!this.isRoot()) {
|
||||||
this.basename = this.genealogy[
|
this.basename = this.genealogy[
|
||||||
this.genealogy.length - 1
|
this.genealogy.length - 1
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user