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

# FSItem.ItemType

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

```
enum ItemType
```

## Topics

### Working with item types

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

The item type of a regular file.

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

The item type of a directory.

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

The item type of a symbolic link.

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

The item type of a first-in/first-out named pipe.

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

The item type of a character device.

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

The item type of a block device.

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

The item type of a socket.

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

The item type of an unknown item.

### Working with raw values

[`init(rawValue:)`](/documentation/FSKit/FSItem/ItemType/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)