<!--
{
  "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.

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

The enumerator recurses into each subdirectory enumerated.

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

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

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

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

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

The enumerator skips package directory contents.

[`kCFURLEnumeratorIncludeDirectoriesPreOrder`](/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.

[`kCFURLEnumeratorIncludeDirectoriesPostOrder`](/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.

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)