- (NSString *)pathForTemporaryFileWithPrefix:(NSString *)prefix
{
NSString * result;
CFUUIDRef uuid;
CFStringRef uuidStr;
uuid = CFUUIDCreate(NULL);
uuidStr = CFUUIDCreateString(NULL, uuid);
result = [NSTemporaryDirectory()stringByAppendingPathComponent:[NSStringstringWithFormat:@"%@-%@", prefix, uuidStr]];
CFRelease(uuidStr);
CFRelease(uuid);
return result;
}
- (NSString *)pathForASIHTTPDownLoadCache
{
NSString *path = [self pathForTemporaryFileWithPrefix:@"iKnow"];
return [path stringByAppendingPathComponent:@"Download"];
}