Browse Source

Fix error message on `mkdir` function

Jediah Dizon 5 years ago
parent
commit
c5f9a668af
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

@@ -523,7 +523,7 @@ class RNFetchBlobFS {
523 523
     static void mkdir(String path, Promise promise) {
524 524
         File dest = new File(path);
525 525
         if(dest.exists()) {
526
-            promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists");
526
+            promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists");
527 527
             return;
528 528
         }
529 529
         try {