From da833c5e9853e9628922f9123d9eb48d9b4e1e94 Mon Sep 17 00:00:00 2001 From: "anh.phamtu" Date: Wed, 4 Sep 2024 15:46:03 +0700 Subject: [PATCH] DownloadFile: fix FileNotFoundExeception when download file in a folder --- sftp-connector/processes/Sftp/SftpDownloadFile.p.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sftp-connector/processes/Sftp/SftpDownloadFile.p.json b/sftp-connector/processes/Sftp/SftpDownloadFile.p.json index 6de6090..a7832d0 100644 --- a/sftp-connector/processes/Sftp/SftpDownloadFile.p.json +++ b/sftp-connector/processes/Sftp/SftpDownloadFile.p.json @@ -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());",