It is best to use a trailing `/` on directory rules to ensure they don't match files.