You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2014/09/25 16:34:34 UTC

[jira] [Commented] (SSHD-352) DefaultSftpClient.write(path) Fails if file path does not already exist

    [ 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)