Browse Source

Update RNFetchBlobFS.java

ihavenoface5 5 years ago
parent
commit
2d66cbfc7f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java View File

416
             File dest = new File(path);
416
             File dest = new File(path);
417
             File dir = dest.getParentFile();
417
             File dir = dest.getParentFile();
418
 
418
 
419
-            if(!dest.)()) {
419
+            if(!dest.exists()) {
420
                 if(dir != null && !dir.exists()) {
420
                 if(dir != null && !dir.exists()) {
421
                     if (!dir.mkdirs()) {
421
                     if (!dir.mkdirs()) {
422
                         callback.invoke("ENOTDIR", "Failed to create parent directory of '" + path + "'");
422
                         callback.invoke("ENOTDIR", "Failed to create parent directory of '" + path + "'");