Method: File.birthtime

Defined in:
file.c

.birthtime(fname) ⇒ Object



2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
# File 'file.c', line 2451

RUBY_FUNC_EXPORTED VALUE
rb_file_s_birthtime(VALUE klass, VALUE fname)
{
    statx_data st;

    if (rb_statx(fname, &st, STATX_BTIME) < 0) {
	int e = errno;
	FilePathValue(fname);
	rb_syserr_fail_path(e, fname);
    }
    return statx_birthtime(&st, fname);
}