From: ts Date: 2000-03-09T15:24:20+01:00 Subject: [ruby-talk:01792] Re: size of Dir stream >>>>> "D" == Dave Thomas writes: D> The class method Dir.open returns a Dir object, which (unless things D> have changed in 1.5) does not respond to 'size'. Possibly you wanted Yes, this is changed in 1.5 (see enum.c) pigeon% cat b.rb #!/usr/bin/ruby path = '/usr/bin' files = Dir.open(path) print "files.size is #{files.size} files.size is #{files.size}\n" pigeon% b.rb files.size is 1484 files.size is 0 pigeon% 1.4.3 Guy Decoux