|
@@ -285,7 +285,9 @@ NSOperationQueue *taskQueue;
|
285
|
285
|
if(![fm fileExistsAtPath:folder]) {
|
286
|
286
|
[fm createDirectoryAtPath:folder withIntermediateDirectories:YES attributes:NULL error:nil];
|
287
|
287
|
}
|
288
|
|
- [fm createFileAtPath:destPath contents:[[NSData alloc] init] attributes:nil];
|
|
288
|
+ if (![fm fileExistsAtPath:destPath]) {
|
|
289
|
+ [fm createFileAtPath:destPath contents:[[NSData alloc] init] attributes:nil];
|
|
290
|
+ }
|
289
|
291
|
writeStream = [[NSOutputStream alloc] initToFileAtPath:destPath append:YES];
|
290
|
292
|
[writeStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
|
291
|
293
|
[writeStream open];
|