In _foreach_file check if the directory exists