Difference between File and FileTest?

I'm new to Ruby. I started writing some code that uses
"FileTest.directory?" and found this method also available as
"File.directory?". So, why the two methods for doing the same thing
and which should I be using? Thank you.

Quoth Steve:

I'm new to Ruby. I started writing some code that uses
"FileTest.directory?" and found this method also available as
"File.directory?". So, why the two methods for doing the same thing
and which should I be using? Thank you.

Most people just use File.directory? now.

ยทยทยท

--
Konrad Meyer <konrad@tylerc.org> http://konrad.sobertillnoon.com/