public int searchFolder() {
		
		try {
		
			totalSize = 0;
				
			File folderLoc = new File(folderLocation);
			File[] fileList = folderLoc.listFiles();
			
			System.out.println("Found "+ fileList.length +" files.. Processing.");
			

			
			// work out the folder sizes for each of the folders.
			for (int j = 0; fileList.length > j; j++) {
				
				long rawSize;
				String parsedSize;
				
				if (fileList[j].isDirectory()) {
					rawSize = FileUtils.sizeOfDirectory(fileList[j]);
				} else {	
					rawSize = fileList[j].length();
				}
				
				parsedSize =  SortOperations.sizeParser(rawSize);
				createFileOrFolder(fileList[j].getName(), parsedSize, rawSize);
				
				totalSize += rawSize;
		}
			
		totalFiles = itemsFound.size();
	
		} catch (NullPointerException error)
		{
			System.out.println("The location \""+ folderLocation() + "\" doesn't exist.");
			
			StackTraceElement stackTrace[] = Thread.currentThread().getStackTrace();
			
			for (int i = 0; i > stackTrace.length; i++)
			{
				System.out.println(stackTrace[i].toString());
			}
			return 0;
		}
		
		return 1;
		
	}