1
mirror of https://github.com/rclone/rclone synced 2025-03-16 21:49:08 +01:00
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 
2021-02-07 17:29:16 +00:00
..
2020-10-14 15:21:31 +01:00
2018-08-21 10:58:59 +01:00
2019-06-19 11:59:46 +01:00
2019-06-19 11:59:46 +01:00
2020-10-28 18:16:23 +00:00
2021-02-02 16:30:58 +00:00