Skip to content

Commit c421819

Browse files
authored
Merge pull request #69 from shahen94/master
fix(RNViewShotModule): FileNotFound exception
2 parents 4ee9326 + 7a88c03 commit c421819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void takeSnapshot(int tag, ReadableMap options, Promise promise) {
7878
if ("file".equals(result)) {
7979
if (options.hasKey("path")) {
8080
file = new File(options.getString("path"));
81-
file.mkdirs();
81+
file.getParentFile().mkdirs();
8282
file.createNewFile();
8383
}
8484
else {

0 commit comments

Comments
 (0)