Skip to content

Commit c5f9a66

Browse files
committed
Fix error message on mkdir function
1 parent d8c79f6 commit c5f9a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ private static void deleteRecursive(File fileOrDirectory) throws IOException {
523523
static void mkdir(String path, Promise promise) {
524524
File dest = new File(path);
525525
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");
527527
return;
528528
}
529529
try {

0 commit comments

Comments
 (0)