Added function to retrieve file objects for file ids.