views:

190

answers:

1

Hi all,

does anybody know how to count files of a directory? I couldn't find something similar in the class reference of NSFileManager.

Thanks in advance.
Sean

+2  A: 

contentsOfDirectoryAtPath:error: returns an NSArray. Just send count to the array.

Benedict Cohen
thanks for the quick response, it works perfectly!
Sean