public static String[] getFileListByExtension(final String location, final String extension) {
		File file = new File(location);
		if (file.isDirectory()) {
			String[] lists = file.list(new FilenameFilter() {
				public boolean accept(File dir, String name) {
					if (name.endsWith(extension.toLowerCase()) || name.endsWith(extension.toUpperCase())) {
						return true;
					}
					return false;
				}
			});
			return lists;
		}
		return null;
	}