<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSDirectoryEntryPacker",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSDirectoryEntryPacker"
  },
  "title" : "FSDirectoryEntryPacker"
}
-->

# FSDirectoryEntryPacker

An object used to provide items during a directory enumeration.

```
class FSDirectoryEntryPacker
```

## Overview

You use this type in your implementation of [`enumerateDirectory(_:startingAt:verifier:attributes:packer:context:replyHandler:)`](/documentation/FSKit/FSVolume/Handler/enumerateDirectory(_:startingAt:verifier:attributes:packer:context:replyHandler:)).

Packing allows your implementation to provide information FSKit needs, including each item’s name, type, and identifier (such as an inode number).
Some directory enumerations require other attributes, as indicated by the [`FSItem.GetAttributesRequest`](/documentation/FSKit/FSItem/GetAttributesRequest) sent to the enumerate method.

## Topics

### Packing entries

[`packEntry(name:itemType:itemID:nextCookie:attributes:)`](/documentation/FSKit/FSDirectoryEntryPacker/packEntry(name:itemType:itemID:nextCookie:attributes:))

Provides a directory entry during enumeration.

[`FSItem.ItemType`](/documentation/FSKit/FSItem/ItemType)

An enumeration of item types, such as file, directory, or symbolic link.

[`FSItem.Identifier`](/documentation/FSKit/FSItem/Identifier)

The unique identifier for an item.

[`FSDirectoryCookie`](/documentation/FSKit/FSDirectoryCookie)

A value that indicates a location in a directory from which to enumerate.

[`FSDirectoryCookie`](/documentation/FSKit/FSDirectoryCookie)

A value that indicates a location in a directory from which to enumerate.

[`FSItem.Attributes`](/documentation/FSKit/FSItem/Attributes)

Attributes of an item, such as size, creation and modification times, and user and group identifiers.



---

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)