file_rec: add source__ignore_directory_pattern

Improve performance when the directory contains many ignorable files.