From: ts Date: 2001-08-22T20:29:30+09:00 Subject: [ruby-talk:20104] Re: File.stat not working? >>>>> "R" == Roger Lipscombe writes: R> #!/usr/bin/env ruby R> puts File.stat(".").directory? R> Doesn't work. I get a Struct::Stat returned from File.stat, rather than the R> documented File::Stat, and the call to directory? results in a NameError. What is your version of ruby ? pigeon% ruby -ve 'puts File.stat(".").directory?; puts File.stat(".")' ruby 1.6.4 (2001-06-04) [i686-linux] true # pigeon% pigeon% ruby -ve 'puts File.stat(".").directory?; puts File.stat(".")' ruby 1.7.1 (2001-08-20) [i686-linux] true # pigeon% Guy Decoux