skip directory that return an error in get_files