---
title: includeDirectoriesPreOrder
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfurlenumeratoroptions/includedirectoriespreorder
---

# includeDirectoriesPreOrder

If provided along with the descendRecursively option, the recursive enumerator returns a directory’s URL before returning the URLs of the directory’s descendents.

## Declaration

```swift
static var includeDirectoriesPreOrder: CFURLEnumeratorOptions { get }
```

## See Also

### Constants

- [descendRecursively](corefoundation/cfurlenumeratoroptions/descendrecursively.md)
- [skipInvisibles](corefoundation/cfurlenumeratoroptions/skipinvisibles.md)
- [generateFileReferenceURLs](corefoundation/cfurlenumeratoroptions/generatefilereferenceurls.md)
- [skipPackageContents](corefoundation/cfurlenumeratoroptions/skippackagecontents.md)
- [includeDirectoriesPostOrder](corefoundation/cfurlenumeratoroptions/includedirectoriespostorder.md)
