class

SSH2::SFTP::Attributes

Inherits Reference / Object

Wraps a remote file's SFTP attributes — size, owner, permissions and times — as returned by File#fstat and Session#stat/#lstat.

Constructors

new(stat : LibSSH2::SFTPAttrs)
Source

Instance methods

atime

Last access time.

Source
atime=(v : Time)

Last access time.

Source
flags

Which attribute fields are populated.

Source
flags=(v : Flags)

Which attribute fields are populated.

Source
gid

Owner group id.

Source
gid=(v)

Owner group id.

Source
mtime

Last modification time.

Source
mtime=(v : Time)

Last modification time.

Source
permissions(v)

POSIX permission bits.

Source
permissions

POSIX permission bits.

Source
size

File size in bytes.

Source
to_unsafe
Source
uid

Owner user id.

Source
uid=(v)

Owner user id.

Source

Nested types