Hi
how could i get rclone to download all jpg files which do not contain "thumb" in the name
match: abdc.jpg xxxxx.jpg house.jpg
not match: abc-thumb.jpg wings-thumb.jpg
thanks
Hi
how could i get rclone to download all jpg files which do not contain "thumb" in the name
match: abdc.jpg xxxxx.jpg house.jpg
not match: abc-thumb.jpg wings-thumb.jpg
thanks
Something like this should work:
rclone lsf --filter "- *thumb*.jpg" --filter "+ *.jpg" --filter "- *" remote:
thank you.
I put the thumb in the second line and it did not go
now it works
what is the difference between this?
--filter "- thumb.jpg" --filter "+ *.jpg"
and this
--filter "+ *.jpg" --filter "- thumb.jpg"
From the docs,
Each file is matched in order, starting from the top, against the rule in the list until it finds a match. The file is then included or excluded according to the rule type.
As soon as it finds a match, it will stop iterating through the filters. So in your case, it will match the include rule for *.jpg
and get added instead of being filtered out as you expect because of the thumb.jpg
exclude rule.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.