From: Rob Marshall Date: 2013-01-30T07:06:20+09:00 Subject: Linux mode bits Hi, Is there a class available for handling the Linux mode bits? i.e. Assuming I have the access mode of a file as a number, e.g. 33188 (octal: 0100644), can I test the mode bits? In Python I can use the 'stat' module which has all of the bits defined as well as tests like: S_ISREG(). Is there something analogous in Ruby? Thanks, Rob -- Posted via http://www.ruby-forum.com/.