Groovy Documentation

org.hidetake.gradle.ssh.api.operation
[Groovy] Interface SftpHandler


interface SftpHandler

Handler for closure of file transfer.

Authors:
hidetake.org


Nested Class Summary
interface SftpHandler.Factory

A factory of SftpHandler.

 
Property Summary
java.lang.Object factory

 
Method Summary
void cd(java.lang.String path)

Change current directory.

void getFile(java.lang.String remote, java.lang.String local)

Get a file from the remote host.

java.util.List ls(java.lang.String path)

Get a directory listing.

void mkdir(java.lang.String path)

Create a directory.

void putFile(java.lang.String local, java.lang.String remote)

Put a file to the remote host.

 

Property Detail

factory

final java.lang.Object factory


 
Method Detail

cd

void cd(java.lang.String path)
Change current directory.
Parameters:
path


getFile

void getFile(java.lang.String remote, java.lang.String local)
Get a file from the remote host.
Parameters:
remote
local


ls

java.util.List ls(java.lang.String path)
Get a directory listing.
Parameters:
path
Returns:
list of files or directories


mkdir

void mkdir(java.lang.String path)
Create a directory.
Parameters:
path


putFile

void putFile(java.lang.String local, java.lang.String remote)
Put a file to the remote host.
Parameters:
local
remote


 

Groovy Documentation