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

# isDirectory

This property contains a boolean value indicating whether the file wrapper is a directory file wrapper.

## Declaration

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

## Discussion

Discussion This property will contain YES when the file wrapper is a directory file wrapper, otherwise it contains NO. note: Invocations of read(from:options:) may change the value of this property, if the type of the file on disk has changed.

## See Also

### Querying File Wrappers

- [isRegularFile](foundation/filewrapper/isregularfile.md)
- [isSymbolicLink](foundation/filewrapper/issymboliclink.md)
