Function

CFURLEnumeratorSkipDescendents(_:)

Tells a recursive enumerator not to descend into the directory at the URL that was returned by the most recent call to the CFURLEnumeratorGetNextURL(_:_:_:) function.

Declaration

func CFURLEnumeratorSkipDescendents(_ enumerator: CFURLEnumerator!)

Parameters

enumerator

The enumerator.

Discussion

A call to this function is ignored in the following cases:

  • The CFURLEnumeratorGetNextURL(_:_:_:) function has never been called with this enumerator.

  • The last URL returned by the CFURLEnumeratorGetNextURL(_:_:_:) function is not a directory.

  • The enumerator is not a directory enumerator that was created with the descendRecursively option.