elasticio / sftp-component

SFTP component for the elastic.io platform
Apache License 2.0
2 stars 3 forks source link

Move File Fails If Destination Already Exists #73

Closed jhorbulyk closed 4 years ago

jhorbulyk commented 4 years ago

Steps to Reproduce

  1. Upload two files foo.txt and bar.txt to a directory.
  2. Use the move action to move foo.txt on to bar.txt

Actual Result

Component errors with sftp.rename: Failure From: /www/jacob/foo.txt To: /www/jacob/bar.txt

Expected Result

There is some mechanism to move files onto existing targets.

jhorbulyk commented 4 years ago

Looks like functionality needs to be implemented several layers down: https://github.com/mscdex/ssh2-streams/issues/152

jhorbulyk commented 4 years ago

Looks like it needs to be added only one layer down: https://github.com/theophilusx/ssh2-sftp-client/issues/173