[
https://issues.apache.org/jira/browse/SSHD-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14147801#comment-14147801
]
Guillaume Nodet commented on SSHD-352:
--------------------------------------
Sorry I missed this issue when committing a fix.
> DefaultSftpClient.write(path) Fails if file path does not already exist
> -----------------------------------------------------------------------
>
> Key: SSHD-352
> URL: https://issues.apache.org/jira/browse/SSHD-352
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 0.12.0
> Reporter: George Sexton
> Priority: Minor
>
> If you call DefaultSftpClient.write(path) and the file does not exist, the
> call throws IO Exception (SFTP Error (2) No Such File).
> This is because the set of OpenMode parameters passed to open() does not
> include OpenMode.Create
> Clearly, write() should not depend upon the files existence for success.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)