private void f(String name){
	  File dir;
	  File[] dirList;
	  
	  if (name.equalsIgnoreCase("") || name.equalsIgnoreCase("."))
		  {
		  	dir = new File(".");
		  	String s_dir = dir.getAbsolutePath();
			dir = new File(s_dir);
		  }
	  else 
		  dir = new File(name);
	  
	  if (!dir.exists())
		  System.out.println("Directory does not exist.");
	  else if (!dir.isDirectory() && dir.isFile())
		  System.out.println(name + " is a file, not a directory");
	  else{
                  dirList = dir.listFiles(); // Doesn't actually list files? Does now :-)
                  	for(File path : dirList){ //Fixed to list files
			System.out.println(path);
}
}
}