<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFURLEnumeratorOptions/descendRecursively",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@E@CFURLEnumeratorOptions@kCFURLEnumeratorDescendRecursively"
  },
  "title" : "descendRecursively"
}
-->

# descendRecursively

The enumerator recurses into each subdirectory enumerated.

```
static var descendRecursively: CFURLEnumeratorOptions { get }
```

## Discussion

This option applies only to directory enumerators.

You can enumerate the directories that a recursive enumerator encounters in pre-order fashion, post-order fashion, or both, by providing a combination of the [`includeDirectoriesPreOrder`](/documentation/CoreFoundation/CFURLEnumeratorOptions/includeDirectoriesPreOrder) and [`includeDirectoriesPostOrder`](/documentation/CoreFoundation/CFURLEnumeratorOptions/includeDirectoriesPostOrder) options. If you provide neither option, the recursive enumerator behaves as if it was provided the [`includeDirectoriesPreOrder`](/documentation/CoreFoundation/CFURLEnumeratorOptions/includeDirectoriesPreOrder) option.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)