@Override
	protected Integer doInBackground() throws Exception {
		publish("State 1 of 5: Collect files and directories! ");

		for (int i=0; i<pathArray.length; i++){
			find(pathArray[i]);
		}
		
		switch (searchMethod){
		case SEARCH_ALL_DUP:
			compareDirectories();
			compareFiles();	
			break;
		case SEARCH_DIR_DUP:
			compareDirectories();
			break;
		case SEARCH_FILE_DUP:
			compareFiles();
			break;
		case SEARCH_DIR_AND_FILE_DUP:
			compareDirectories();
			compareFiles();
			break;
		}
		// Output duplicates files
		/*		for (int i=0; i<resultArray.size(); i++) {
					for (int j=0; j<resultArray.get(i).size(); j++) {
						System.out.println(resultArray.get(i).get(j).getAbsolutePath());
					}
					System.out.println("-------------------------------");
				}
		*/
		
		return 1;
	}