Skip to content

Struct cais_fs_stat_t

Data Structures > cais_fs_stat_t

File or directory metadata status structure.

  • #include <filesystem.h>

Struct Members

Type Name
long atime
long ctime
cais_bool_t is_readonly
int mode
long mtime
cais_fsize_t size
cais_fs_type_t type

Member Details

atime

long atime;

Last access timestamp (epoch seconds)


ctime

long ctime;

Status change or file creation timestamp (epoch seconds)


is_readonly

cais_bool_t is_readonly;

CAIS_TRUE if read-only attribute is set, CAIS_FALSE otherwise


mode

int mode;

Permission bits (POSIX octal mode flags, e.g. 0644)


mtime

long mtime;

Last modification timestamp (epoch seconds)


size

cais_fsize_t size;

File size in bytes (64-bit on supported platforms)


type

cais_fs_type_t type;

Node kind (regular file, directory, symlink, etc.)



The documentation was generated from the following file: include/cais/filesystem.h