instance method
File::Stat#sticky?
() -> bool
stat.sticky? → true or false
file.c
View on GitHub ↗
static VALUE
rb_stat_sticky(VALUE obj)
{
#ifdef S_ISVTX
if (get_stat(obj)->ST_(mode) & S_ISVTX) return Qtrue;
#endif
return Qfalse;
}
Returns true if stat has its sticky bit set, false if it doesn’t or if the operating system doesn’t support this feature.
Example
File.stat("testfile").sticky? #=> false