Skip to content
instance method

File::Stat#sticky?

() -> bool
stat.sticky? → true or false

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
See also #socket? #symlink? #size? #uid also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0