Closed UrosLF closed 4 years ago
Facing the same issue.
Completing the future with failed IOResult is missing in FtpMoveSink:
and in FtpRemoveSink
A call to matFailure
should be added similarly as it is in FTPIoSinkStage and others:
The more tricky part is going to be configuring ftp servers for the tescase where it tries to remove or move a file and get permission denied exception.
To simulate that behavior, I've found that changing the permission on the directory containing files to be moved / deleted such that write is prohibited works. When a file (or folder) is uploaded to SFTP it keeps its permissions so that can be used for tests.
To get permission denied exception you could try moving or deleting .ssh/ or upload/ now that tests are run against docker.
This was fixed with #2111.
Hi all,
I saw a similar issue here which lead to creating this.
Snippets to move / delete a file are:
Those are fed from the result of
listFiles
:To reproduce:
listFiles -> deleteSftpFile / moveSftpFile
against a SFTP serverResult I get:
As you can see the
Permission denied
isn't a part of theioResult
and I believe it should be.Scala version and ftp lib version:
Let me know if you need any additional details