Yes, I should let getFile handle throw error by itself if the path is invalid.