docs: def samefile(a: str, b: str) -> bool:
      """Check if two pathes represent the same file."""
      try:
          return os.path.samefile(a, b)
      except OSError:
          return os.path.normpath(a) == os.path.normpath(b)