Skip to content

Commit b8e0dff

Browse files
authored
Update RNFetchBlobFS.java
1 parent 6e50a4e commit b8e0dff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ void writeStream(String path, String encoding, boolean append, Callback callback
416416
File dest = new File(path);
417417
File dir = dest.getParentFile();
418418

419-
if(!dest.exists()) {
419+
if(!dest.)()) {
420420
if(dir != null && !dir.exists()) {
421421
if (!dir.mkdirs()) {
422422
callback.invoke("ENOTDIR", "Failed to create parent directory of '" + path + "'");
@@ -671,7 +671,9 @@ static void exists(String path, Callback callback) {
671671
boolean isDir = new File(path).isDirectory();
672672
callback.invoke(exist, isDir);
673673
}
674-
callback.invoke(false, false);
674+
else {
675+
callback.invoke(false, false);
676+
}
675677
}
676678
}
677679

0 commit comments

Comments
 (0)