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. - 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 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
Related Documentation
Functions
CFAllocatorAllocateBytes(_:_:_:)CFAllocatorAllocateTyped(_:_:_:_:)CFAllocatorReallocateBytes(_:_:_:_:)CFAllocatorReallocateTyped(_:_:_:_:_:)CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)CFBundleIsArchitectureLoadable(_:)CFBundleIsExecutableLoadable(_:)CFBundleIsExecutableLoadableForURL(_:)CFCopyHomeDirectoryURL()CFDateFormatterCreateISO8601Formatter(_:_:)CFFileSecurityClearProperties(_:_:)CFFileSecurityCopyAccessControlList(_:_:)CFFileSecurityCopyGroupUUID(_:_:)CFFileSecurityCopyOwnerUUID(_:_:)