Added ability to stat a file by file_id or pathname.