Skip to content

Commit

Permalink
Merge pull request zhihu#493 from JuniperPhoton/dir
Browse files Browse the repository at this point in the history
Make sure directory in capture strategy exists before proceeding
  • Loading branch information
mthli committed Sep 27, 2018
2 parents 379ffee + 14b7bc2 commit 2eb0c35
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ private File createImageFile() throws IOException {
}
if (mCaptureStrategy.directory != null) {
storageDir = new File(storageDir, mCaptureStrategy.directory);
if (!storageDir.exists()) storageDir.mkdirs();
}

// Avoid joining path components manually
Expand Down

0 comments on commit 2eb0c35

Please sign in to comment.