Skip to content

Commit 948a2b9

Browse files
authored
Merge pull request #123 from ihavenoface5/FileMoving
Removed output directory check / create. Fixes all file types moving.
2 parents f1b8694 + 1ebb03b commit 948a2b9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -600,17 +600,6 @@ static void mv(String path, String dest, Callback callback) {
600600
return;
601601
}
602602

603-
//Check if the output file directory exists.
604-
File dir = new File(dest);
605-
if (!dir.exists())
606-
{
607-
if (!dir.mkdirs())
608-
{
609-
callback.invoke("Output directory creation failed.");
610-
return;
611-
}
612-
}
613-
614603
try {
615604
InputStream in = new FileInputStream(path);
616605
OutputStream out = new FileOutputStream(dest);

0 commit comments

Comments
 (0)