public static List<File> getFiles(File folder) {
		if (!folder.exists())
			folder.mkdirs();
		List<File> list = new ArrayList<File>();
		for (File fileEntry : folder.listFiles()) {
			if (fileEntry.isDirectory()) {
				getFiles(fileEntry);
			}
			else {
				list.add(fileEntry);
			}
		}
		return list;
	}