I have added SftpPersistentAcceptOnceFileListFilter on my Sftp Outbound Gateway to filter out files that I have processed.