Created
April 2, 2014 08:15
-
-
Save zigdanis/9930023 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)loadFile:(void (^)(NSURL *))finish | |
{ | |
if (!fileExistToPath(self.pathToLocalFile)) | |
{ | |
self.loadFileHandler = finish; | |
[self.restClient loadFile:self.dropboxFile.path atRev:self.dropboxFile.rev intoPath:self.pathToLocalFile]; | |
} | |
else | |
{ | |
NSURL *urlLocalPath = [NSURL fileURLWithPath:self.pathToLocalFile]; | |
BLOCK_SAFE_RUN(finish, urlLocalPath); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment