列出程序索引中的指定文件夹的所有文件

列出程序目录中的指定文件夹的所有文件NSFileManager *m [NSFileManager defaultManager]NSArray *file

列出程序目录中的指定文件夹的所有文件

    NSFileManager *m = [NSFileManager defaultManager];    NSArray *fileList = [m directoryContentsAtPath:[[[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]                                                      stringByAppendingPathComponent:@"163"]                                                      stringByAppendingPathComponent:@"songzi"] stringByAppendingPathComponent:@"pictures"]];    for (NSString *s in fileList){        NSLog(s);    }