Make rclone lsd obey the filters properly

This commit is contained in:
Nick Craig-Wood 2016-12-07 11:16:36 +00:00
parent cb9f1eefd2
commit 3bdfa284a9

View file

@ -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 {