windows:File.directory? returns true if the argument is an IO that is a directory
