class

SSH2::SFTP::Session

Inherits SSH2::SFTP::Base / Reference / Object

Instance methods

channel

Returns the underlying channel

Source
close

Shut down the SFTP subsystem. Called automatically by the sftp_session block form.

Source
lstat(path)

Performs lstat(2) operation on path

Source
mkdir(path, mode)

Create a directory on the remote file system.

Source
open(filename, flags = "r", mode = 0)

Opens a remote filename. Returns new SFTP instance.

Source
open_dir(dirname, flags = "r", mode = 0)

Opens a remote dirname. Returns new SFTP instance.

Source
realpath(path)

Resolve path to an absolute canonical path.

Source
rename(src, dst, flags : LibSSH2::RenameFlags = RenameFlags::OVERWRITE)

Rename a filesystem object on the remote filesystem.

Source
rmdir(path)

Remove a directory on the remote file system.

Source
setstat(path, attrs : Attributes)

Sets attributes on path

Source
stat(path)

Performs stat(2) operation on path

Source