<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSItem/Attribute",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSItemAttribute"
  },
  "title" : "FSItem.Attribute"
}
-->

# FSItem.Attribute

A value that indicates a set of item attributes to get or set.

```
struct Attribute
```

## Overview

This type is an option set in Swift.
In Objective-C, you use the cases of this enumeration to create a bit field.

## Topics

### Working with identifier attributes

[`fileID`](/documentation/FSKit/FSItem/Attribute/fileID)

The file ID attribute.

[`parentID`](/documentation/FSKit/FSItem/Attribute/parentID)

The parent ID attribute.

### Working with metadata attributes

[`type`](/documentation/FSKit/FSItem/Attribute/type)

The type attribute.

[`mode`](/documentation/FSKit/FSItem/Attribute/mode)

The mode attribute.

[`linkCount`](/documentation/FSKit/FSItem/Attribute/linkCount)

The link count attribute.

[`uid`](/documentation/FSKit/FSItem/Attribute/uid)

The user ID (uid) attribute.

[`gid`](/documentation/FSKit/FSItem/Attribute/gid)

The group ID (gid) attribute.

[`flags`](/documentation/FSKit/FSItem/Attribute/flags)

The flags attribute.

[`size`](/documentation/FSKit/FSItem/Attribute/size)

The size attribute.

[`allocSize`](/documentation/FSKit/FSItem/Attribute/allocSize)

The allocated size attribute.

[`supportsLimitedXAttrs`](/documentation/FSKit/FSItem/Attribute/supportsLimitedXAttrs)

The supports limited extended attributes attribute.

[`inhibitKernelOffloadedIO`](/documentation/FSKit/FSItem/Attribute/inhibitKernelOffloadedIO)

The inhibit kernel offloaded I/O attribute.

### Working with time attributes

[`accessTime`](/documentation/FSKit/FSItem/Attribute/accessTime)

The last-accessed time attribute.

[`modifyTime`](/documentation/FSKit/FSItem/Attribute/modifyTime)

The last-modified time attribute.

[`changeTime`](/documentation/FSKit/FSItem/Attribute/changeTime)

The last-changed time attribute.

[`birthTime`](/documentation/FSKit/FSItem/Attribute/birthTime)

The creation time attribute.

[`backupTime`](/documentation/FSKit/FSItem/Attribute/backupTime)

The backup time attribute.

[`addedTime`](/documentation/FSKit/FSItem/Attribute/addedTime)

The time added attribute.

### Working with raw values

[`init(rawValue:)`](/documentation/FSKit/FSItem/Attribute/init(rawValue:))



---

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)