Skip to content

Commit

Permalink
Fix build after last merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Feb 20, 2015
1 parent 6a492e6 commit 936eb9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ConnectionKit/CK2FileOperation.m
Expand Up @@ -458,10 +458,10 @@ - (void)protocol:(CK2Protocol *)protocol didCompleteWithError:(NSError *)error;
if (error)
{
if (_createIntermediateDirectories) {
NSString *path = [CK2FileManager pathOfURL:_URL];
NSString *path = [CK2FileManager pathOfURL:self.originalURL];
if (path.length && ![path isEqualToString:@"/"]) {

NSURL *directoryURL = [_URL URLByDeletingLastPathComponent];
NSURL *directoryURL = [self.originalURL URLByDeletingLastPathComponent];
_createIntermediateDirectories = NO; // avoid doing this again

[self.fileManager createDirectoryAtURL:directoryURL
Expand Down

0 comments on commit 936eb9b

Please sign in to comment.