- (void)enumerateThroughDirectory:(NSString *)directory
includingSubDirectories:(BOOL)includeSubDirectories withBlock:(void (^)(NSString
*fullFilePath))block error:(NSError **)error - enumerates the specified
directory, and can enumerate sub-directories if required.
Parameters
- (NSString *)directory
- String specifying the path of the directory to enumerate.
- (BOOL)includeSubDirectories
- Whether or not to include sub-directories.
- (void (^)(NSString *fullFilePath))block
- Code to execute for each item enumerate.
- (NSError **)error
- Error object
Returns
(void)