public static ArrayList<String> getFiles(String path) {
		ArrayList<String> files = new ArrayList<String>();
		File folder = new File(path);
		File[] listOfFiles = folder.listFiles();

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

			if (listOfFiles[i].isFile()) {
				// list the files
				files.add(path + System.getProperty("file.separator") + listOfFiles[i].getName());
			} else if(listOfFiles[i].isDirectory()){
				
				// recursive search, TODO:windows only
				files.addAll(getFiles(path + System.getProperty("file.separator") + listOfFiles[i].getName()));
			}
		}
		
		return files;
	}