public class FileManager {
	public static void main(String[] args) {
		
		//build up a filesystem!
		
		//create the root directory
		Folder rootDir = new Folder("c:\\");
		
		//DOS used to have C:\autoexec.bat, a batch file
		File autoexecDotBat = new File("autoexec.bat");
		rootDir.addItem(autoexecDotBat);
		
		//create TLDs (top-level directories) and add to root dir
		Folder windowsDir = new Folder("Windows");
		rootDir.addItem(windowsDir);
		
		Folder documentsDir = new Folder("My Documents");
		rootDir.addItem(documentsDir);
		
		Folder programFilesDir = new Folder("Program Files");
		rootDir.addItem(programFilesDir);
		
		//Create some documents to live in your docs folder
		File psOneDoc = new File("ps1.doc");
		documentsDir.addItem(psOneDoc);
		
		File psTwoDoc = new File("ps2.doc");
		documentsDir.addItem(psTwoDoc);
		
		//create c:\windows\system32\drivers\etc\hosts --> we need
		//subfolders of c:\windows first, then add the 'hosts' file
		Folder system32Dir = new Folder("system32");
		windowsDir.addItem(system32Dir);
		
		Folder driversDir = new Folder("drivers");
		system32Dir.addItem(driversDir);
		
		Folder etcDir = new Folder("etc");
		driversDir.addItem(etcDir);
		
		File hostsFile = new File("hosts");
		etcDir.addItem(hostsFile);
		
		//how many file are contained within c:\windows\system32\drivers\etc?
		System.out.println("There is/are " + etcDir.fileCount() + " file(s) in " 
				+ "c:\\windows\\system32\\drivers\\etc.");
		
		//how many files in the entire filesystem?
		System.out.println("There is/are " + rootDir.fileCount() + " file(s) in " 
				+ "c:\\ AND all subdirectories.");
		
		//see what the entire filesystem looks like
		System.out.println("\n\nHere's the entire filesystem:");
		System.out.println("-----------------------------");
		rootDir.printFileSystemTree();
	}
}