The current implementation writes files with a configurable suffix in the same directory.
Our current SFTP customers/users prefer to use a temporary directory.
The file must be moved from the temporary directory to the destination directory when it's written successfully.
To handle this case I created a customized FileTransferringMessageHandler.
If you are interested in the changes I have made please let me know.