Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
Create missing documents directory when required.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonc committed Dec 18, 2012
1 parent 9ee2dbf commit 3da034c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Tesseract.mm
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ - (void)copyDataToDocumentsDirectory {
NSString *bundlePath = [[NSBundle bundleForClass:[self class]] bundlePath];
NSString *tessdataPath = [bundlePath stringByAppendingPathComponent:_dataPath];
if (tessdataPath) {
[fileManager createDirectoryAtPath:documentPath withIntermediateDirectories:YES attributes:nil error:NULL];
[fileManager copyItemAtPath:tessdataPath toPath:dataPath error:nil];
}
}
Expand Down

0 comments on commit 3da034c

Please sign in to comment.