File info: code refactoring