oject-c 代码 遍历目录 遍历文件夹 匹配后缀名

    NSArray *fileList = [[NSFileManager defaultManager] directoryContentsAtPath:deskPath];

NSArray *fileList = [[[NSFileManager defaultManager] directoryContentsAtPath:DOCUMENTS_FOLDER]

                pathsMatchingExtensions:[NSArray arrayWithObject:@"png"]] ;

你可能感兴趣的:(oject-c 代码 遍历目录 遍历文件夹 匹配后缀名)