Function

CFURLEnumeratorCreateForMountedVolumes(_:_:_:)

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

Declaration

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

Parameters

alloc

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

options

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 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 and skipPackageContents options.

See Also