From f66158a983008593a3f3d2913751cc2a89f0968d Mon Sep 17 00:00:00 2001 From: sakama Date: Fri, 7 Jul 2017 16:34:59 +0900 Subject: [PATCH] Increment fileIndex after complete uploadFile --- src/main/java/org/embulk/output/sftp/SftpFileOutput.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/embulk/output/sftp/SftpFileOutput.java b/src/main/java/org/embulk/output/sftp/SftpFileOutput.java index 7c6cbea..d67de75 100644 --- a/src/main/java/org/embulk/output/sftp/SftpFileOutput.java +++ b/src/main/java/org/embulk/output/sftp/SftpFileOutput.java @@ -180,6 +180,7 @@ public void finish() { closeCurrentFile(); uploadFile(getOutputFilePath()); + fileIndex++; } @Override