binaryninja.os.stat_result

class stat_result

stat_result: Result from stat, fstat, or lstat.

This object may be accessed either as a tuple of

(mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)

or via the attributes st_mode, st_ino, st_dev, st_nlink, st_uid, and so on.

Posix/windows: If your platform supports st_blksize, st_blocks, st_rdev, or st_flags, they are available as attributes only.

See os.stat for more information.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

n_fields

n_sequence_fields

n_unnamed_fields

st_atime

time of last access

st_atime_ns

time of last access in nanoseconds

st_birthtime

time of creation

st_blksize

blocksize for filesystem I/O

st_blocks

number of blocks allocated

st_ctime

time of last change

st_ctime_ns

time of last change in nanoseconds

st_dev

device

st_flags

user defined flags for file

st_gen

generation number

st_gid

group ID of owner

st_ino

inode

st_mode

protection bits

st_mtime

time of last modification

st_mtime_ns

time of last modification in nanoseconds

st_nlink

number of hard links

st_rdev

device type (if inode device)

st_size

total size, in bytes

st_uid

user ID of owner