Ver código fonte

Merge pull request #308 from JediahDizon/master

Fix error message on `mkdir` function
Travis Nuttall 5 anos atrás
pai
commit
e10f658b84
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java Ver arquivo

@@ -535,7 +535,7 @@ class RNFetchBlobFS {
535 535
     static void mkdir(String path, Promise promise) {
536 536
         File dest = new File(path);
537 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 539
             return;
540 540
         }
541 541
         try {