<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/FilePath/isLexicallyNormal",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System8FilePathV17isLexicallyNormalSbvp"
  },
  "title" : "isLexicallyNormal"
}
-->

# isLexicallyNormal

Whether the path is in lexical-normal form, that is `.` and `..`
components have been collapsed lexically (i.e. without following
symlinks).

```
var isLexicallyNormal: Bool { get }
```

## Discussion

Examples:

- `"/usr/local/bin".isLexicallyNormal == true`
- `"../local/bin".isLexicallyNormal   == true`
- `"local/bin/..".isLexicallyNormal   == false`

---

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)