Skip to content

Commit

Permalink
hacky fix for missing '/' at the start of path
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-ahmed committed Sep 6, 2022
1 parent d0e5cf4 commit 062a99c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/services/file-system/FileSystemNodes/Inode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export default class Inode extends TreeNode implements SerializableNode {
if(this.parent) {
return this.parent.getAbsolutePath(delimiter) + this.value + delimiter;
}

// Hack: Unix-based OS use '/', so we need it to be leading
if (delimiter === '/') return '/' + this.value
return this.value
}

Expand Down

0 comments on commit 062a99c

Please sign in to comment.