fails:File.directory? accepts an object that has a #to_path method
