有没有一种快速的方法来为 NSHomeDirectory 中的特定文件夹吐出目录列表?我正在使用ASIHTTPRequest中的一个示例,该示例通过以下方式下载图像:
[request setDownloadDestinationPath:[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"totallyhotmilf.jpg"]];
我想列出 Documents 文件夹中的文件,以查看实际下载的内容以用于调试目的。谢谢您的帮助。