std1.0.0-beta-7 SafeC docs

std :: dir

Struct std::FileStat

#include <std/dir.h> source

struct FileStat {
    int kind;
    long long size;
    long long mtime_ns;
}

What file_stat reports.

Fields

§int kindsource

DIR_NONE .. DIR_OTHER (a link itself, not its target)

§long long sizesource

bytes (regular files)

§long long mtime_nssource

last modification, ns since the Unix epoch (0 where the platform backend can't tell: see dir_posix.sc)