You are here

contentsOfDirectoryAtPath

- (NSArray *)contentsOfDirectoryAtPath:(NSString *)directoryPath error:(NSError **)error - returns an array containing all the items in the specified directory.

Parameters

(NSString *)directoryPath
String specifying the path of the directory to return items for.
(NSError **)error
Error object

Returns

(NSArray *) - an array of the items in the specified directory.

Example