---
title: isDirectory
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresourcevalues/isdirectory
---

# isDirectory

A Boolean value that indicates whether the resource is a directory.

## Declaration

```swift
var isDirectory: Bool? { get }
```

## See Also

### Directory values

- [directoryEntryCount](foundation/urlresourcevalues/directoryentrycount.md)
