From: ts Date: 2001-08-22T20:33:52+09:00 Subject: [ruby-talk:20106] Re: File.stat not working? >>>>> "t" == ts writes: >>>>> "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. t> What is your version of ruby ? OK, I've understood pigeon% ruby -ve 'puts File.stat(".").directory?; puts File.stat(".")' ruby 1.4.6 (2000-08-16) [i686-linux] /tmp/rbqmQUhk:1: undefined method `directory?' for # (NameError) pigeon% Guy Decoux