Exclude a folder by name in multiple locations

I’m trying to exclude all folders called __pycache__ . This folder occurs in multiple places. How do I exclude this?

I’ve read the docs and it’s not entirely clear to me if this is possible, or how to do this. Any help appreciated :slight_smile:

--exclude pycache

I guess that’s it ;). It should exclude it from all places regardless how deep.

Is it what you are looking for?

1 Like

I think so, thanks :slight_smile: It’s called __pycache__ but I messed up the formatting above, which I’ll fix now.