filter: allow multiple --exclude-if-present flags - fixes #6219
This commit is contained in:
parent
20aaeba547
commit
f4f0e444bf
10 changed files with 31 additions and 24 deletions
|
@ -2136,6 +2136,7 @@ For the filtering options
|
|||
* `--filter-from`
|
||||
* `--exclude`
|
||||
* `--exclude-from`
|
||||
* `--exclude-if-present`
|
||||
* `--include`
|
||||
* `--include-from`
|
||||
* `--files-from`
|
||||
|
|
|
@ -750,7 +750,9 @@ Useful for debugging.
|
|||
|
||||
The `--exclude-if-present` flag controls whether a directory is
|
||||
within the scope of an rclone command based on the presence of a
|
||||
named file within it.
|
||||
named file within it. The flag can be repeated to check for
|
||||
multiple file names, presence of any of them will exclude the
|
||||
directory.
|
||||
|
||||
This flag has a priority over other filter flags.
|
||||
|
||||
|
@ -764,8 +766,6 @@ E.g. for the following directory structure:
|
|||
The command `rclone ls --exclude-if-present .ignore dir1` does
|
||||
not list `dir3`, `file3` or `.ignore`.
|
||||
|
||||
`--exclude-if-present` can only be used once in an rclone command.
|
||||
|
||||
## Common pitfalls
|
||||
|
||||
The most frequent filter support issues on
|
||||
|
|
|
@ -47,7 +47,7 @@ These flags are available for every command.
|
|||
--error-on-no-transfer Sets exit code 9 if no files are transferred, useful in scripts
|
||||
--exclude stringArray Exclude files matching pattern
|
||||
--exclude-from stringArray Read exclude patterns from file (use - to read from stdin)
|
||||
--exclude-if-present string Exclude directories if filename is present
|
||||
--exclude-if-present stringArray Exclude directories if filename is present
|
||||
--expect-continue-timeout duration Timeout when using expect / 100-continue in HTTP (default 1s)
|
||||
--fast-list Use recursive list if available; uses more memory but fewer transactions
|
||||
--files-from stringArray Read list of source-file names from file (use - to read from stdin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue