1
mirror of https://github.com/rclone/rclone synced 2024-11-23 00:06:55 +01:00

docs: mention that inline comments are not supported in a filter-file

This commit is contained in:
tgfisher 2024-10-21 00:10:09 -07:00 committed by GitHub
parent a19ddffe92
commit 8ca7b2af07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -505,6 +505,8 @@ processed in.
Arrange the order of filter rules with the most restrictive first and
work down.
Lines starting with # or ; are ignored, and can be used to write comments. Inline comments are not supported. _Use `-vv --dump filters` to see how they appear in the final regexp._
E.g. for `filter-file.txt`:
# a sample filter rule file
@ -512,6 +514,7 @@ E.g. for `filter-file.txt`:
+ *.jpg
+ *.png
+ file2.avi
- /dir/tmp/** # WARNING! This text will be treated as part of the path.
- /dir/Trash/**
+ /dir/**
# exclude everything else