Skip to content

Commit

Permalink
DownloadFile: fix FileNotFoundExeception when download file in a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
anh-bolt committed Sep 4, 2024
1 parent f8f22df commit da833c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sftp-connector/processes/Sftp/SftpDownloadFile.p.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
" ivy.log.debug(\"The following file: {0} will be downloaded from the server. Size: {1} bytes\", in.remoteFileName, fileData.size);",
" ",
" in.toFile = new File(in.remoteFileName, true);",
"",
" in.toFile.getParentFile().mkdir();",
" ",
" FileOutputStream fos = null;",
" try {",
" fos = new FileOutputStream(in.toFile.getJavaFile());",
Expand Down

0 comments on commit da833c5

Please sign in to comment.