Support for ignoring directories.