class
SSH2::SFTP::Session
- SSH2::SFTP::Session
- Reference
- Object
Included Modules
Defined in:
sftp/session.crInstance Method Summary
-
#channel
Returns the underlying channel
-
#close
Shut down the SFTP subsystem.
-
#lstat(path)
Performs lstat(2) operation on
path -
#mkdir(path, mode)
Create a directory on the remote file system.
-
#open(filename, flags = "r", mode = 0)
Opens a remote
filename. -
#open_dir(dirname, flags = "r", mode = 0)
Opens a remote
dirname. -
#readlink(path)
Resolve the target of a symlink.
-
#realpath(path)
Resolve
pathto an absolute canonical path. -
#rename(src, dst, flags : LibSSH2::RenameFlags = RenameFlags::OVERWRITE)
Rename a filesystem object on the remote filesystem.
-
#rmdir(path)
Remove a directory on the remote file system.
-
#setstat(path, attrs : Attributes)
Sets attributes on
path -
#stat(path)
Performs stat(2) operation on
path -
#symlink(path, target)
Create a new symlink
-
#ulink(filename)
DEPRECATED Use
#unlinkinstead -
#unlink(filename)
Delete a file on the remote filesystem.
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
Opens a remote filename.
Returns new SFTP instance.
Opens a remote dirname.
Returns new SFTP instance.
Rename a filesystem object on the remote filesystem.