浏览代码

Merge pull request #123 from ihavenoface5/FileMoving

Removed output directory check / create. Fixes all file types moving.
Travis Nuttall 6 年前
父节点
当前提交
948a2b9fdd
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 0 次插入11 次删除
  1. 0
    11
      android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 0
- 11
android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java 查看文件

600
             return;
600
             return;
601
         }
601
         }
602
 
602
 
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
-
614
         try {
603
         try {
615
             InputStream in = new FileInputStream(path);
604
             InputStream in = new FileInputStream(path);
616
             OutputStream out = new FileOutputStream(dest);
605
             OutputStream out = new FileOutputStream(dest);