Commit 141bcbf2 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Add .. and . to readdir output.

parent 5d191a07
......@@ -170,6 +170,8 @@ func (me *FileSystemConnector) OpenDir(header *InHeader, input *OpenIn) (flags u
extra: node.GetMountDirEntries(),
stream: stream,
}
de.extra = append(de.extra, DirEntry{S_IFDIR, "."}, DirEntry{S_IFDIR, ".."})
h, opened := mount.registerFileHandle(node, de, nil, input.Flags)
return opened.FuseFlags, h, OK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment