---
title: hfsTypeCode
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/fileattributekey/hfstypecode
---

# hfsTypeCode

The key in a file attribute dictionary whose value indicates the file’s HFS type code.

## Declaration

```swift
static let hfsTypeCode: FileAttributeKey
```

## Discussion

Discussion The corresponding value is an NSNumber object containing an OSType (unsigned 32-bit integer). See HFS File Types for possible values.

## See Also

### Accessing File Attributes

- [appendOnly](foundation/fileattributekey/appendonly.md)
- [busy](foundation/fileattributekey/busy.md)
- [creationDate](foundation/fileattributekey/creationdate.md)
- [deviceIdentifier](foundation/fileattributekey/deviceidentifier.md)
- [extensionHidden](foundation/fileattributekey/extensionhidden.md)
- [groupOwnerAccountID](foundation/fileattributekey/groupowneraccountid.md)
- [groupOwnerAccountName](foundation/fileattributekey/groupowneraccountname.md)
- [hfsCreatorCode](foundation/fileattributekey/hfscreatorcode.md)
- [immutable](foundation/fileattributekey/immutable.md)
- [modificationDate](foundation/fileattributekey/modificationdate.md)
- [ownerAccountID](foundation/fileattributekey/owneraccountid.md)
- [ownerAccountName](foundation/fileattributekey/owneraccountname.md)
- [posixPermissions](foundation/fileattributekey/posixpermissions.md)
- [protectionKey](foundation/fileattributekey/protectionkey.md)
- [referenceCount](foundation/fileattributekey/referencecount.md)
