vfs: filter files . and .. from readDir output - fixes #2135
This commit is contained in:
parent
cc8799e0d6
commit
7c5f87842c
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue