Excluding directories - partial name match -

Hi there,

How do I exclude directories that has specific words in it. Once found I'd like that directory and its subtree to be excluded.

For e.g. **delete.later/** 

doesn't work. I know though path/to/a/specific/delete.later/** will work. But dont want to list every one of them.

Thank you

Take a look at:

https://rclone.org/filtering/

As that gives a number of examples on filtering.

Thanks, I looked at them but doesn't cover my question though!

Sure.

This part:

dir/** - matches "dir/file.jpg"
       - matches "dir/dir1/dir2/file.jpg"

Just use something like

**/deletelater/**

I personally wouldn't use "." as it is a regex.

deletelater is not a directory name by itself. In my case it is part (suffix) of a directory name

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.