SSHSFTP
Cliente SFTP utilizado com o SSH.
close
close() : void
Description
Closes the SFTP current session.
Return
( void )
closed
closed() : boolean
Description
Checks if the SFTP session is still open.
Return
( boolean )
True if it is open.
createDirectories
createDirectories(remotePath: string) : SSHSFTP
Description
Creates the path of folders in the server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | Server path where the folder structure should be created. |
Return
( SSHSFTP )
The current SFTP client.
createDirectory
createDirectory(remotePath: string) : SSHSFTP
Description
Creates a folder in the server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | Server path where the folder should be created. |
Return
( SSHSFTP )
The current SFTP client.
deleteDirectory
deleteDirectory(remotePath: string) : SSHSFTP
Description
Deletes a folder in the server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | Server path where the folder should be removed. |
Return
( SSHSFTP )
The current SFTP client.
deleteFile
deleteFile(remotePath: string) : SSHSFTP
Description
Deletes a file in the server.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | Server path where the file should be removed. |
Return
( SSHSFTP )
The current SFTP client.
download
download(remotePath: string, destination: OutputStream) : SSHSFTP
Description
Copies a server file to a local file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
destination | OutputStream | Local file of destination to store the remote content. |
Return
( SSHSFTP )
The current SFTP client.
download(remotePath: string, destination: File) : SSHSFTP
Description
Copies a server file to a local file.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
remotePath | string | File path in the server. |
destination | File | Local file of destination to store the remote content. |
Return
( SSHSFTP )
The current SFTP client.