From: hipster Date: 2001-08-22T20:34:58+09:00 Subject: [ruby-talk:20107] Re: File.stat not working? On Wed, 22 Aug 2001 20:28:28 +0900, Roger Lipscombe wrote: > > #!/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. Debian potato, libc6-2.2.3-5, ruby 1.6.4, kernel 2.4.9 lorentz:~/src/lisp$ ruby -e 'puts File.stat(".").directory?' true Michel