server: Use common implementation for client and server get_file_info.