mirror of
https://github.com/rclone/rclone.git
synced 2025-06-20 11:47:57 +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 {
|
if Config.MaxDepth > 0 {
|
||||||
level = Config.MaxDepth
|
level = Config.MaxDepth
|
||||||
}
|
}
|
||||||
list := NewLister().SetLevel(level).Start(f, "")
|
list := NewLister().SetFilter(Config.Filter).SetLevel(level).Start(f, "")
|
||||||
for {
|
for {
|
||||||
dir, err := list.GetDir()
|
dir, err := list.GetDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user