Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
0.12.0
-
None
-
None
Description
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.
Attachments
Issue Links
- is duplicated by
-
SSHD-354 SftpClient#write(String path) should support the OpenMode flags as an argument
- Resolved