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

Make rclone lsd obey the filters properly

Nick Craig-Wood3bdfa284a909
diff --git a/fs/operations.go b/fs/operations.go
index e48b26a07..971aba4d1 100644
--- a/fs/operations.go
+++ b/fs/operations.go
@@ -754,7 +754,7 @@ func ListDir(f Fs, w io.Writer) error {
if Config.MaxDepth > 0 {
level = Config.MaxDepth
}
- list := NewLister().SetLevel(level).Start(f, "")
+ list := NewLister().SetFilter(Config.Filter).SetLevel(level).Start(f, "")
for {
dir, err := list.GetDir()
if err != nil {