fails:FileTest.directory? return true if the argument is an IO that is a directory
