Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-352

DefaultSftpClient.write(path) Fails if file path does not already exist

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              gsexton George Sexton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: