Browse Source

Merge pull request #308 from JediahDizon/master

Fix error message on `mkdir` function
Travis Nuttall 4 years ago
parent
commit
e10f658b84
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

535
     static void mkdir(String path, Promise promise) {
535
     static void mkdir(String path, Promise promise) {
536
         File dest = new File(path);
536
         File dest = new File(path);
537
         if(dest.exists()) {
537
         if(dest.exists()) {
538
-            promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists");
538
+            promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists");
539
             return;
539
             return;
540
         }
540
         }
541
         try {
541
         try {