Create documents directory when needed for tessdata #4

merged 1 commit into from Jan 2, 2013


None yet
2 participants

hiltonc commented Dec 18, 2012

On a different computer, when running unit tests involving tesseract-ios, I found the documents directory did not exist, causing tesseract to fail. This commit creates the documents directory, which solves this problem and fails silently when not required.


ldiqual commented Jan 2, 2013

Are you sure it is a problem related to iOS? I think it should only happen if you use the wrapper in an OSX environment. Could you please confirm this?


hiltonc commented Jan 2, 2013

Correct, it is only a problem on Mac OS X. I only run across it because I use unit tests.

@ldiqual ldiqual added a commit that referenced this pull request Jan 2, 2013

@ldiqual ldiqual Merge pull request #4 from hiltonc/master
Create documents directory when needed for tessdata

@ldiqual ldiqual merged commit 4f93be0 into ldiqual:master Jan 2, 2013


ldiqual commented Jan 2, 2013

Ok, I wasn't confortable with the fact that you're creating a new directory (possibly on a read-only filesystem) but as we are copying tessdata files anyway...
Thanks for your contribution, this is much appreciated ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment