FileStat

A structure for storing and retrieving file information on Linux.

Constructors

this
this(string filepath, uint fieldMask)

The constructor creates object with file information by file path.

Members

Functions

update
void update()

This method re-reads and updates file information.

Properties

group
string group [@property getter]

Gets group name of owner.

type
FileType type [@property getter]

Returns file type.

user
string user [@property getter]

Gets user name of owner.

Variables

atime
timestamp_t atime;

Time of last access.

attributes
ulong attributes;

Extra file attribute indicators.

attributes_mask
ulong attributes_mask;

Mask to show what's supported in stx_attributes.

blksize
uint blksize;

Block size for filesystem I/O.

blocks
ulong blocks;

Number of 512B blocks allocated.

btime
timestamp_t btime;

Time of creation.

ctime
timestamp_t ctime;

Time of last status change.

dev
ulong dev;

ID of device containing file.

dev_major
uint dev_major;

Major ID of the filesystem where the file resides.

dev_minor
uint dev_minor;

Minor ID of the filesystem where the file resides.

fieldMask
uint fieldMask;

Stored mask for required structure fields.

filepath
string filepath;

File path.

gid
uint gid;

Group ID of owner.

ino
ulong ino;

Inode number.

mask
uint mask;

Mask of bits indicating filled fields.

mode
ushort mode;

File type and mode.

mtime
timestamp_t mtime;

Time of last modification.

nlink
uint nlink;

Number of hard links.

rdev
ulong rdev;

Device ID (if this file is a device).

rdev_major
uint rdev_major;

Device major id (if this file is a device).

rdev_minor
uint rdev_minor;

Device minor id (if this file is a device).

size
ulong size;

Total size in bytes.

uid
uint uid;

User ID of owner.

Meta