How can I count the files in a directory? I couldn\'t find anything relevant in the class reference of NSFileManager.
NSFileManager
contentsOfDirectoryAtPath:error: returns an NSArray. Just send count to the array.
contentsOfDirectoryAtPath:error:
NSArray
count