标签:
//返回一个字符串数组(子路径), 并且不包含文件夹 [[NSFileManager defaultManager] contentsOfDirectoryAtPath:folderPath error:&error]; //返回一个字符串数组(子路径), 并且包含文件和文件夹 NSArray *subpaths = [[NSFileManager defaultManager] subpathsAtPath:folderPath]; NSArray *subpaths2 = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath:folderPath error:nil];
标签:
原文地址:http://www.cnblogs.com/apem/p/4702560.html