From: Roger Lipscombe Date: 2001-08-22T20:28:28+09:00 Subject: [ruby-talk:20103] Re: File.stat not working? > #!/usr/bin/env ruby > > puts File.stat(".").directory? > > Doesn't work. I get a Struct::Stat returned from File.stat, rather than the > documented File::Stat, and the call to directory? results in a NameError. Hmmm. Further investigation reveals that this _does_ work on Win32, but fails to work on Linux (Debian potato). irb (which has the same problem) is the same version on both installations. What am I missing? Cheers, Roger.