Skip to content

Commit

Permalink
Merge pull request #123 from ihavenoface5/FileMoving
Browse files Browse the repository at this point in the history
Removed output directory check / create. Fixes all file types moving.
  • Loading branch information
Traviskn authored Jul 18, 2018
2 parents f1b8694 + 1ebb03b commit 948a2b9
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 948a2b9

Please sign in to comment.