From 2084f7e079c951fdadebe23dcff5ec247c6e0158 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin This module implements an SFTP (SSH FTP) client. SFTP is a
- secure, encrypted file transfer service available for
- SSH.
Type definitions that are used more than once in this module and/or abstractions to indicate the intended use of the data type:
@@ -51,8 +46,8 @@If the request functions for the sftp channel return {error, timeout} - it does not mean that the request did not reach the server and was +
If the request functions for the SFTP channel return {error, timeout} + it does not guarantee that the request did not reach the server and was not performed, it only means that we did not receive an answer from the server within the time that was expected.
If not provided, setups a ssh connection in this case a - connection reference will be returned too. A ssh channel - process is started to handle the communication with the SFTP - server, the returned pid for this process should be used as - input to all other API functions in this module.
+If no connection reference is provided, a connection is set + up and the new connection is returned. An SSH channel process + is started to handle the communication with the SFTP server. + The returned pid for this process should be used as input to + all other API functions in this module.
Options are:
Stops a sftp channel. If the ssh connection should be closed
- call
Stops an SFTP channel. Does not close the SSH connetion.
+ Use
Writes a file to the server, like
Writes a file to the server, like
+
Opens a file on the server, and returns a handle that - is used for reading or writing.
+ can be used for reading or writing.Opens a handle to a directory on the server, the handle - is used for reading directory contents.
+ can be used for reading directory contents.Reads
If the file is read past eof, only the remaining bytes
@@ -267,9 +263,9 @@
Write Writes Typical error reasons are: Sets the file position of the file referenced by Read the link target from the symbolic link specified
+ Reads the link target from the symbolic link specified
by