add getFileInfo to API