diff --git a/src/app/services/file-system/FileSystemNodes/Inode.ts b/src/app/services/file-system/FileSystemNodes/Inode.ts index 4cadf91..32799b3 100644 --- a/src/app/services/file-system/FileSystemNodes/Inode.ts +++ b/src/app/services/file-system/FileSystemNodes/Inode.ts @@ -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 }