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:35:33 UTC
[jira] [Closed] (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:all-tabpanel ]
Guillaume Nodet closed SSHD-352.
--------------------------------
Resolution: Duplicate
> 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)