Skip to content

Commit 062a99c

Browse files
committed
hacky fix for missing '/' at the start of path
1 parent d0e5cf4 commit 062a99c

File tree

1 file changed

+3
-0
lines changed
  • src/app/services/file-system/FileSystemNodes

1 file changed

+3
-0
lines changed

src/app/services/file-system/FileSystemNodes/Inode.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export default class Inode extends TreeNode implements SerializableNode {
7272
if(this.parent) {
7373
return this.parent.getAbsolutePath(delimiter) + this.value + delimiter;
7474
}
75+
76+
// Hack: Unix-based OS use '/', so we need it to be leading
77+
if (delimiter === '/') return '/' + this.value
7578
return this.value
7679
}
7780

0 commit comments

Comments
 (0)