class SSH2::SFTP::Session

Included Modules

Defined in:

sftp/session.cr

Instance Method Summary

Instance methods inherited from module SSH2::SFTP::Base

closed? closed?, finalize finalize, session : SSH2::Session session, to_unsafe to_unsafe

Constructor methods inherited from module SSH2::SFTP::Base

new(session, handle) new

Instance Method Detail

def channel #

Returns the underlying channel


[View source]
def close #

[View source]
def lstat(path) #

Performs lstat(2) operation on path


[View source]
def mkdir(path, mode) #

Create a directory on the remote file system.


[View source]
def open(filename, flags = "r", mode = 0) #

Opens a remote filename. Returns new SFTP instance.


[View source]
def open_dir(dirname, flags = "r", mode = 0) #

Opens a remote dirname. Returns new SFTP instance.


[View source]
def readlink(path) #

[View source]
def rename(src, dst, flags : LibSSH2::RenameFlags = RenameFlags::OVERWRITE) #

Rename a filesystem object on the remote filesystem.


[View source]
def setstat(path, attrs : Attributes) #

Sets attributes on path


[View source]
def stat(path) #

Performs stat(2) operation on path


[View source]
def symlink(path, target) #

Create a new symlink


[View source]
def ulink(filename) #

[View source]