We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d73cc99 + 8bf7e89 commit b9f2bdeCopy full SHA for b9f2bde
plugins/actions/ftp/src/main/java/org/apache/hop/workflow/actions/ftp/ActionFtp.java
@@ -27,6 +27,7 @@
27
import java.util.List;
28
import java.util.regex.Matcher;
29
import java.util.regex.Pattern;
30
+import org.apache.commons.net.ftp.FTP;
31
import org.apache.commons.net.ftp.FTPClient;
32
import org.apache.commons.net.ftp.FTPFile;
33
import org.apache.commons.vfs2.FileObject;
@@ -436,6 +437,10 @@ public Result execute(Result previousResult, int nr) {
436
437
limitFiles = Const.toInt(resolve(getNrLimit()), 10);
438
}
439
440
+ if (binaryMode) {
441
+ ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
442
+ }
443
+
444
// Get the files in the list...
445
for (FTPFile ftpFile : ftpFiles) {
446
0 commit comments