static public Method

File.sticky?(p1)

File.sticky?(file_name)     true or false

Returns true if the named file has the sticky bit set.

Source Code

/*
* call-seq:
*   File.sticky?(file_name)   =>  true or false
*
* Returns <code>true</code> if the named file has the sticky bit set.
*/

static VALUE
test_sticky(obj, fname)
   VALUE obj, fname;
{
#ifdef S_ISVTX
   return check3rdbyte(fname, S_ISVTX);
#else
   return Qnil;
#endif
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.