file() to fileInfo(), and make method style consistent.