Groovy Documentation

org.hidetake.gradle.ssh.plugin.operation
[Groovy] Interface SftpOperations


interface SftpOperations

An aggregate of file transfer operations.

Authors:
hidetake.org


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.

 

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.
Returns:
list of files or directories
Parameters:
path


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