End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
FileTest#sticky?
File.sticky?(file_name) → true or false
file.c
View on GitHub ↗
static VALUE
rb_file_sticky_p(VALUE obj, VALUE fname)
{
#ifdef S_ISVTX
return check3rdbyte(fname, S_ISVTX);
#else
return Qfalse;
#endif
}
Returns true if the named file has the sticky bit set.
file_name can be an IO object.