1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

fix: changed inode of parent directory, so ls -lah will show .. again

This commit is contained in:
Falk Werner 2019-02-03 18:31:43 +01:00
parent 856dba2c31
commit d7bc8cb0f3

View File

@ -101,7 +101,7 @@ class FileSystem {
if ((entry) && ("dir" === entry.type)) {
result = [
{name: '.', inode: entry.inode},
{name: '..', inode: 0}
{name: '..', inode: entry.inode}
];
for(let subdir of Object.entries(entry.entries)) {
const name = subdir[0];