浏览代码

Merge pull request #308 from JediahDizon/master

Fix error message on `mkdir` function
Travis Nuttall 5 年前
父节点
当前提交
e10f658b84
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java 查看文件

@@ -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 {