code: def compat_stat(path):
  	
  	stat = os.stat(path)
  	info = get_file_info(path)
  	# rewrite st_ino, st_dev, and st_nlink based on file info
  	return nt.stat_result(
  		(stat.st_mode,) +
  		(info.file_index, info.volume_serial_number, info.number_of_links) +
  		stat[4:]
  	)
docs: Generate stat as found on Python 3.2 and later.