iPhone在documents路径下创建和删除文件夹

#define kDocuments [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]

BOOL isCreate = [[NSFileManager defaultManager] createDirectoryAtPath:[kDocuments stringByAppendingPathComponent:@"Event1"]
                                                      withIntermediateDirectories:YES
                                                                                           attributes:nil
                                                                                                 error:nil];

[[NSFileManager defaultManager] removeItemAtPath:[kDocuments stringByAppendingPathComponent:@"Event1"]  error:nil];

你可能感兴趣的:(document)