<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/Stat/==(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System4StatV2eeoiySbAC_ACtFZ"
  },
  "title" : "==(_:_:)"
}
-->

# ==(_:_:)

Compares the meaningful file-metadata fields of two `Stat` values.

```
static func == (lhs: Stat, rhs: Stat) -> Bool
```

## Discussion

Alignment padding and platform reserved/“spare” fields are not compared.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)