From 7c5f87842c2e0a8f7fd95caf642320bbaf244285 Mon Sep 17 00:00:00 2001 From: Mateusz Pabian Date: Tue, 24 Apr 2018 23:28:37 +0200 Subject: [PATCH] vfs: filter files . and .. from readDir output - fixes #2135 --- vfs/dir.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vfs/dir.go b/vfs/dir.go index c0acdbf85..4d831cff8 100644 --- a/vfs/dir.go +++ b/vfs/dir.go @@ -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) {