If you have a directory and want to ignore everything with the exception of some files (e.g. *.py
files), you can do:
sub-dir/**/*.*!sub-dir/**/*.py
If you have a directory and want to ignore everything with the exception of some files (e.g. *.py
files), you can do:
sub-dir/**/*.*!sub-dir/**/*.py