---
title: isDirectoryKey
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/urlresourcekey/isdirectorykey
---

# isDirectoryKey

A key for determining whether the resource is a directory.

## Declaration

```swift
static let isDirectoryKey: URLResourceKey
```

## Discussion

Discussion The corresponding value is a read-only Boolean NSNumber object.

## See Also

### Directory keys

- [parentDirectoryURLKey](foundation/urlresourcekey/parentdirectoryurlkey.md)
- [directoryEntryCountKey](foundation/urlresourcekey/directoryentrycountkey.md)
