Replace another fetch_directory() use