Преглед изворни кода

Removed output directory check / create. Fixes file moving.

adamburnett пре 5 година
родитељ
комит
1ebb03b831
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,17 +600,6 @@ class RNFetchBlobFS {
600 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 603
         try {
615 604
             InputStream in = new FileInputStream(path);
616 605
             OutputStream out = new FileOutputStream(dest);