apply file exclusion to the current directory
Merge pull request #3828 from dloverin/exclude-files

apply file exclusion to the current directory