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

This commit is contained in:
Mateusz Pabian
2018-04-25 16:09:07 +01:00
committed by Nick Craig-Wood
parent cc8799e0d6
commit 7c5f87842c
+3
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) {