vfs: filter files . and .. from readDir output - fixes #2135

This commit is contained in:
Mateusz Pabian 2018-04-24 23:28:37 +02:00 committed by Nick Craig-Wood
parent cc8799e0d6
commit 7c5f87842c
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ func (d *Dir) _readDir() error {
found := make(map[string]struct{})
for _, entry := range entries {
name := path.Base(entry.Remote())
if name == "." || name == ".." {
continue
}
node := d.items[name]
found[name] = struct{}{}
switch item := entry.(type) {