# Functions
NewClient create and initialize new client for SSH file transfer protocol.
NewFileAttrs create and initialize [FileAttrs] from [fs.FileInfo].
# Constants
OpenFlagAppend any write to remote file handle opened with this file will be appended at the end of the file.
OpenFlagCreate create new file on the server if it does not exist.
OpenFlagExcl passing this flag along OpenFlagCreate will fail the remote file already exists.
OpenFlagRead open remote file for read only.
OpenFlagTruncate truncated the remote file.
OpenFlagWrite open remote file for write only.
# Variables
ErrBadMessage or SSH_FX_BAD_MESSAGE(5) may be returned if a badly formatted packet or protocol incompatibility is detected.
ErrConnectionLost or SSH_FX_CONNECTION_LOST(7) indicated that the connection to the server has been lost.
ErrFailure or SSH_FX_FAILURE(4) is a generic catch-all error message; it should be returned if an error occurs for which there is no more specific error code defined.
ErrNoConnection or SSH_FX_NO_CONNECTION(6) indicates that the client has no connection to the server.
ErrOpUnsupported or SSH_FX_OP_UNSUPPORTED(8) indicates that an attempt was made to perform an operation which is not supported for the server or the server does not implement an operation.
ErrSubsystem indicates that the server does not support or enable the Subsystem for sftp.
ErrVersion indicates that this client does not support the version on server.
# Structs
Client for SFTP.
FileAttrs define the attributes for opening or creating file on the remote.
FileHandle define the container to store remote file.