How to exclude files in sub-directories?

telephono 9 years ago updated 9 years ago 2
How do I exclude files in sub-directories of a project? For example, hide all .gitkeep files in a Rails project.

When I use "file_exclude_patterns": [".gitkeep"], all .gitkeep files in sub-directories are still visible.
Could this be a bug on Linux? I just tested it on Mac OS X and it's working as expected... Have to re-evaluate on Linux again (tomorrow...)
Never mind, it works as expected. I don't know, what I did wrong at my first try...