NSFileManager *m = [NSFileManager defaultManager];
NSArray *fileList = [m directoryContentsAtPath:[[[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]
stringByAppendingPathComponent:@"163"]
stringByAppendingPathComponent:@"songzi"] stringByAppendingPathComponent:@"pictures"]];
for (NSString *s in fileList){
NSLog(s);
}
列出程序目录中的指定文件夹的所有文件
最新推荐文章于 2021-08-09 11:28:09 发布