---
title: FileAttributeType
framework: foundation
role: symbol
role_heading: Structure
path: foundation/fileattributetype
---

# FileAttributeType

Values representing a file’s type attribute.

## Declaration

```swift
struct FileAttributeType
```

## Discussion

Discussion These strings are the possible values for the type attribute key contained in the dictionary object returned by attributesOfItem(atPath:).

## Topics

### Creating a File Attribute Type

- [init(rawValue:)](foundation/fileattributetype/init(rawvalue:).md)

### Accessing File Type Attributes

- [typeBlockSpecial](foundation/fileattributetype/typeblockspecial.md)
- [typeCharacterSpecial](foundation/fileattributetype/typecharacterspecial.md)
- [typeDirectory](foundation/fileattributetype/typedirectory.md)
- [typeRegular](foundation/fileattributetype/typeregular.md)
- [typeSocket](foundation/fileattributetype/typesocket.md)
- [typeSymbolicLink](foundation/fileattributetype/typesymboliclink.md)
- [typeUnknown](foundation/fileattributetype/typeunknown.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting Types

- [FileManager.DirectoryEnumerationOptions](foundation/filemanager/directoryenumerationoptions.md)
- [FileManager.SearchPathDirectory](foundation/filemanager/searchpathdirectory.md)
- [FileManager.SearchPathDomainMask](foundation/filemanager/searchpathdomainmask.md)
- [FileAttributeKey](foundation/fileattributekey.md)
- [FileProtectionType](foundation/fileprotectiontype.md)
- [URLFileProtection](foundation/urlfileprotection.md)
