mirror of
https://github.com/rclone/rclone.git
synced 2026-01-09 12:03:20 +00:00
Make rclone lsd obey the filters properly
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user