Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

Mateusz Pabian7c5f87842c2e
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) {