I am writing many files to disk, and I would like to split them up into different categories, but how do I do this?
问问题
261 次
1 回答
0
请参阅类中的以下方法NSFileManager
:
- (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes
- (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(NSDictionary *)attributes error:(NSError **)error
另请注意,您不能将任何内容写入 application bundle。然而,应用程序沙箱包含几个您可以编写的文件夹(它们之间的选择取决于您的需要)。有关详细信息,请参阅“常用目录”。
于 2010-03-17T13:59:22.710 回答