private ArrayList<File> getAllFilesInDirectory(File directory) {

		ArrayList<File> filesInDirectory = new ArrayList<File>();

		File[] files = directory.listFiles();

		System.out.println(directory.getPath());

		for (int i = 0; i < files.length; i++) {

			if (files[i].isFile()) {
				filesInDirectory.add(files[i]);
			}

			if (files[i].isDirectory()) {
				ArrayList<File> filesInSubDirectory = getAllFilesInDirectory(files[i]);

				for (int j = 0; j < filesInSubDirectory.size(); j++) {
					filesInDirectory.add(filesInSubDirectory.get(j));
				}
			}

		}

		return filesInDirectory;

	}