I am working on a project where I need to recursively iterate through the sub-directories of a given folder, and essentially grab the paths of all of the children in that folder. Both the CFURLEnumerator and the NSDirectoryEnumerator do that, but I can’t decide which one to use. Is there a speed difference between the two?
I’d appreciate to hear if anyone has had experience with this.
I think any difference in speed would be swamped by the fact that you have to read the directory structure off the disk. I’d always go with the NS- version because Cocoa is a bit easier to work with than Core Foundation.