Method: File#birthtime
- Defined in:
- file.c
#birthtime ⇒ Time
2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 |
# File 'file.c', line 2500
static VALUE
rb_file_birthtime(VALUE obj)
{
rb_io_t *fptr;
statx_data st;
GetOpenFile(obj, fptr);
if (fstatx_without_gvl(fptr->fd, &st, STATX_BTIME) == -1) {
rb_sys_fail_path(fptr->pathv);
}
return statx_birthtime(&st, fptr->pathv);
}
|