NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray * paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];//去处需要的路径
/// NSDocumentDirectory, NSUserDomainMask, YES)
NSString *strPath = [documentsDirectory stringByAppendingPathComponent:self.cameraID];
NSDirectoryEnumerator<NSString *> * myDirectoryEnumerator;
myDirectoryEnumerator= [fileManager enumeratorAtPath:strPath];
while (strPath = [myDirectoryEnumerator nextObject]) {
for (NSString * namePath in strPath.pathComponents) {
NSLog(@"-----AAA-----%@", namePath );
}
}