Use File.directory? to check if things are directories