[ci skip] Simplify get_file_info()