Added support for ignore_files for folders.