diff --git a/sftp-connector/processes/Sftp/SftpDownloadFile.p.json b/sftp-connector/processes/Sftp/SftpDownloadFile.p.json index 6de6090..8257631 100644 --- a/sftp-connector/processes/Sftp/SftpDownloadFile.p.json +++ b/sftp-connector/processes/Sftp/SftpDownloadFile.p.json @@ -59,7 +59,10 @@ " 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);", - "", + " if(!in.toFile.getParentFile().exists()) {", + " in.toFile.getParentFile().mkdir();", + " }", + " ", " FileOutputStream fos = null;", " try {", " fos = new FileOutputStream(in.toFile.getJavaFile());",