Skip to content

Commit 2d66cbf

Browse files
authored
Update RNFetchBlobFS.java
1 parent b8e0dff commit 2d66cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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.)()) {
419+
if(!dest.exists()) {
420420
if(dir != null && !dir.exists()) {
421421
if (!dir.mkdirs()) {
422422
callback.invoke("ENOTDIR", "Failed to create parent directory of '" + path + "'");

0 commit comments

Comments
 (0)