From: Zach Buckholz Date: 2006-05-26T02:34:21+09:00 Subject: File.stat.mode not same mode as File.stat.inspect ?? I am working on a little ruby script to check file stats and I am getting a weird mask when I query the mode directly. I am also looking at stat.2 (man 2 stat) and the bits just are not adding up to give me 8. The proper mode is 0100644 but when I print @mode = fileObj.stat.mode I get 33188 print "-----\n", fileObj.stat.inspect, "\n-----\n" ----- # ----- print fileObj.stat.mode 33188 <---- Value that's confusing me print fileObj.stat.uid 501 print fileObj.stat.gid 506 Can anyone clarify what I am doing wrong? Thanks Zach