[PATCH 3/3] server: Generalize get_directory_entries to single_entry case.