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

# CFURLEnumeratorOptions

Options for controlling enumerator behavior.

```
struct CFURLEnumeratorOptions
```

## Topics

### Constants

[`kCFURLEnumeratorDefaultBehavior`](/documentation/CoreFoundation/CFURLEnumeratorOptions/kCFURLEnumeratorDefaultBehavior)

The enumerator performs its default behavior.

[`descendRecursively`](/documentation/CoreFoundation/CFURLEnumeratorOptions/descendRecursively)

The enumerator recurses into each subdirectory enumerated.

[`skipInvisibles`](/documentation/CoreFoundation/CFURLEnumeratorOptions/skipInvisibles)

The enumerator skips “hidden” or “invisible” objects.

[`generateFileReferenceURLs`](/documentation/CoreFoundation/CFURLEnumeratorOptions/generateFileReferenceURLs)

The enumerator generates file reference URLs instead of file path URLs.

[`skipPackageContents`](/documentation/CoreFoundation/CFURLEnumeratorOptions/skipPackageContents)

The enumerator skips package directory contents.

[`includeDirectoriesPreOrder`](/documentation/CoreFoundation/CFURLEnumeratorOptions/includeDirectoriesPreOrder)

If provided along with the [`descendRecursively`](/documentation/CoreFoundation/CFURLEnumeratorOptions/descendRecursively) option, the recursive enumerator returns a directory’s URL before returning the URLs of the directory’s descendents.

[`includeDirectoriesPostOrder`](/documentation/CoreFoundation/CFURLEnumeratorOptions/includeDirectoriesPostOrder)

If provided along with the [`descendRecursively`](/documentation/CoreFoundation/CFURLEnumeratorOptions/descendRecursively) option, the recursive enumerator returns a directory’s URL after returning the URLs of the directory’s descendents.



---

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)