mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:45:25 +01:00
vfs: filter files . and .. from readDir output - fixes #2135
This commit is contained in:
parent
cc8799e0d6
commit
7c5f87842c
@ -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 New Issue
Block a user