瀏覽代碼

Update RNFetchBlobFS.java

ihavenoface5 5 年之前
父節點
當前提交
2d66cbfc7f
No account linked to committer's email address
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

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

@@ -416,7 +416,7 @@ class RNFetchBlobFS {
416 416
             File dest = new File(path);
417 417
             File dir = dest.getParentFile();
418 418
 
419
-            if(!dest.)()) {
419
+            if(!dest.exists()) {
420 420
                 if(dir != null && !dir.exists()) {
421 421
                     if (!dir.mkdirs()) {
422 422
                         callback.invoke("ENOTDIR", "Failed to create parent directory of '" + path + "'");