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