---
title: URLFileResourceType
framework: foundation
role: symbol
role_heading: Structure
path: foundation/urlfileresourcetype
---

# URLFileResourceType

Possible values for the type of file resource.

## Declaration

```swift
struct URLFileResourceType
```

## Topics

### Creating a File Resource Type Instance

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

### Constants

- [namedPipe](foundation/urlfileresourcetype/namedpipe.md)
- [characterSpecial](foundation/urlfileresourcetype/characterspecial.md)
- [directory](foundation/urlfileresourcetype/directory.md)
- [blockSpecial](foundation/urlfileresourcetype/blockspecial.md)
- [regular](foundation/urlfileresourcetype/regular.md)
- [symbolicLink](foundation/urlfileresourcetype/symboliclink.md)
- [socket](foundation/urlfileresourcetype/socket.md)
- [unknown](foundation/urlfileresourcetype/unknown.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

### File keys

- [fileAllocatedSizeKey](foundation/urlresourcekey/fileallocatedsizekey.md)
- [fileProtectionKey](foundation/urlresourcekey/fileprotectionkey.md)
- [URLFileProtection](foundation/urlfileprotection.md)
- [fileContentIdentifierKey](foundation/urlresourcekey/filecontentidentifierkey.md)
- [fileResourceIdentifierKey](foundation/urlresourcekey/fileresourceidentifierkey.md)
- [fileResourceTypeKey](foundation/urlresourcekey/fileresourcetypekey.md)
- [fileSecurityKey](foundation/urlresourcekey/filesecuritykey.md)
- [fileSizeKey](foundation/urlresourcekey/filesizekey.md)
- [isAliasFileKey](foundation/urlresourcekey/isaliasfilekey.md)
- [isPackageKey](foundation/urlresourcekey/ispackagekey.md)
- [isRegularFileKey](foundation/urlresourcekey/isregularfilekey.md)
- [isPurgeableKey](foundation/urlresourcekey/ispurgeablekey.md)
- [isSparseKey](foundation/urlresourcekey/issparsekey.md)
- [mayHaveExtendedAttributesKey](foundation/urlresourcekey/mayhaveextendedattributeskey.md)
- [mayShareFileContentKey](foundation/urlresourcekey/maysharefilecontentkey.md)
