mirror of
https://github.com/rclone/rclone.git
synced 2025-02-20 07:48:33 +02:00
Make rclone lsd obey the filters properly
This commit is contained in:
parent
cb9f1eefd2
commit
3bdfa284a9
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user