Skip to content

Commit

Permalink
Merge pull request #308 from JediahDizon/master
Browse files Browse the repository at this point in the history
Fix error message on `mkdir` function
  • Loading branch information
Traviskn authored Sep 26, 2019
2 parents 9a10735 + c5f9a66 commit e10f658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private static void deleteRecursive(File fileOrDirectory) throws IOException {
static void mkdir(String path, Promise promise) {
File dest = new File(path);
if(dest.exists()) {
promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists");
promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists");
return;
}
try {
Expand Down

0 comments on commit e10f658

Please sign in to comment.