Skip to content

Commit

Permalink
Actually record that SFTP directory creation wants intermediate direc…
Browse files Browse the repository at this point in the history
…tories to be created
  • Loading branch information
mikeabdullah committed May 4, 2015
1 parent b25c8cd commit eb2b727
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ConnectionKit/CK2FileOperation.m
Expand Up @@ -120,7 +120,7 @@ - (id)initDirectoryCreationOperationWithURL:(NSURL *)url
NSString *description = [NSString stringWithFormat:NSLocalizedString(@"The folder “%@” could not be created.", "error descrption"),
url.lastPathComponent];

return [self initWithURL:url errorDescription:description manager:manager completionHandler:block createProtocolBlock:^CK2Protocol *(Class protocolClass) {
self = [self initWithURL:url errorDescription:description manager:manager completionHandler:block createProtocolBlock:^CK2Protocol *(Class protocolClass) {

return [[protocolClass alloc] initForCreatingDirectoryWithRequest:[self requestWithURL:url]
withIntermediateDirectories:createIntermediates
Expand All @@ -132,6 +132,8 @@ - (id)initDirectoryCreationOperationWithURL:(NSURL *)url
if ([url.scheme caseInsensitiveCompare:@"sftp"] == NSOrderedSame) {
_createIntermediateDirectories = createIntermediates;
}

return self;
}

- (id)initFileCreationOperationWithURL:(NSURL *)url
Expand Down

0 comments on commit eb2b727

Please sign in to comment.