owned?()
public
Returns true if the effective user id of the process is the same as the
owner of stat.
File.stat("testfile").owned?
File.stat("/etc/passwd").owned?
Show source
static VALUE
rb_stat_owned(VALUE obj)
{
if (get_stat(obj)->st_uid == geteuid()) return Qtrue;
return Qfalse;
}