<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFURLEnumeratorCreateForMountedVolumes(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFURLEnumeratorCreateForMountedVolumes"
  },
  "title" : "CFURLEnumeratorCreateForMountedVolumes(_:_:_:)"
}
-->

# CFURLEnumeratorCreateForMountedVolumes(_:_:_:)

Creates and returns a volume enumerator with provided enumerator behavior options and properties to be prefetched.

```
func CFURLEnumeratorCreateForMountedVolumes(_ alloc: CFAllocator!, _ option: CFURLEnumeratorOptions, _ propertyKeys: CFArray!) -> CFURLEnumerator!
```

## Parameters

`alloc`

The memory allocator to use. If `NULL`, the default allocator is used.

`option`

A bit array of enumerator behavior options.

`propertyKeys`

An array of file property keys to prefetch for each enumerated URL. Can be `NULL`.

## Return Value

The created volume enumerator.

## Discussion

Volume enumerators generate file path URLs by default. To generate file reference URLs instead, include the [`generateFileReferenceURLs`](/documentation/CoreFoundation/CFURLEnumeratorOptions/generateFileReferenceURLs) option in `options`.

Specifying prefetch properties allows the enumerator to optimize device access by using bulk operations. However, you should not prefetch properties that are not needed, because doing so may degrade performance.

This function ignores the [`descendRecursively`](/documentation/CoreFoundation/CFURLEnumeratorOptions/descendRecursively) and [`skipPackageContents`](/documentation/CoreFoundation/CFURLEnumeratorOptions/skipPackageContents) options.

## See Also

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

Options for controlling enumerator behavior.



---

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)