Filter functions for files.