Skip to content

Commit

Permalink
Removed output directory check / create. Fixes file moving.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamburnett committed Jul 17, 2018
1 parent 4800935 commit 1ebb03b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -600,17 +600,6 @@ static void mv(String path, String dest, Callback callback) {
return;
}

//Check if the output file directory exists.
File dir = new File(dest);
if (!dir.exists())
{
if (!dir.mkdirs())
{
callback.invoke("Output directory creation failed.");
return;
}
}

try {
InputStream in = new FileInputStream(path);
OutputStream out = new FileOutputStream(dest);
Expand Down

0 comments on commit 1ebb03b

Please sign in to comment.