<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSHFSTypeOfFile(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@F@NSHFSTypeOfFile"
  },
  "title" : "NSHFSTypeOfFile(_:)"
}
-->

# NSHFSTypeOfFile(_:)

Returns a string encoding a file type.

```
func NSHFSTypeOfFile(_ fullFilePath: String!) -> String!
```

## Parameters

`fullFilePath`

The full absolute path of a file.

## Return Value

A string that encodes `fullFilePath`’s HFS file type, or `nil` if the operation was not successful

## Discussion

---

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)