From: "Morris, Chris" Date: 2002-03-13T22:32:40+09:00 Subject: RE: Windows 1.6.6.0 File.mode doesn't exist > To directly access the mode bits, you can use the "mode" > instance method of > the File::Stat class (instances of which are returned by > File.stat and some > other functions), e.g. > > irb(main):001:0> File.stat("C:/ruby/bin/ruby.exe").mode > 33279 D'oh! Got in a rush yesterday and didn't realize I was reading the docs under File::Stat instead of File. Thanks. > more platform-independent, instance methods from File::Stat, e.g. > > irb(main):002:0> File.stat("C:/ruby/bin/ruby.exe").readable? > true > irb(main):002:0> File.stat("C:/ruby/bin/ruby.exe").writable? > true > irb(main):002:0> File.stat("C:/ruby/bin/ruby.exe").executable? > true Even better -- again, in a little too much of a rush yesterday. Thanks! Chris