rclone/fs/filter
Nick Craig-Wood 8897377a54 filter: Make --exclude "dir/" equivalent to --exclude "dir/**"
Rclone uses directory exclusions to cut down the listing it has to do,
so before this fix `--exclude dir/` would make sure nothing in `dir/`
was scanned, **except** if --fast-list was used, in which case only
the directory was excluded and everything within it was included.

This is rather unexpected, so this patch makes `--exclude dir/` be
equivalent to `--exclude dir/**`, meaning that excluding a directory
excludes it and its contents.

We can't do the same for --include without changing the semantics of
filtering slightly.

Fixes #3375
2021-02-07 17:29:16 +00:00
..
filterflags filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
filter_test.go filter: Make --exclude "dir/" equivalent to --exclude "dir/**" 2021-02-07 17:29:16 +00:00
filter.go filter: Make --exclude "dir/" equivalent to --exclude "dir/**" 2021-02-07 17:29:16 +00:00
glob_test.go Revert "filter: Add BoundedRecursion method" 2019-08-08 14:15:50 +01:00
glob.go Revert "filter: Add BoundedRecursion method" 2019-08-08 14:15:50 +01:00