public static String createDir(String url) {

		StringTokenizer tokenizer = new StringTokenizer(url, "/");
		String tmp = tokenizer.nextToken();
		StringBuilder sb = new StringBuilder();
		if (basePath == null || "".equals(basePath)) {
			System.out.println("文件存储基本路径未指定！无法存储文件！");
			return "ERROR";
		}
		sb.append(basePath);
		String appendDir = tokenizer.nextToken();
		sb.append(File.separator);
		sb.append(appendDir);
		while (tokenizer.hasMoreTokens()) {
			appendDir = tokenizer.nextToken();
			if (tokenizer.hasMoreTokens()) {
				sb.append(File.separator);
				sb.append(appendDir);
			}
		}
		// String filename[] = "abc/dc/d.html".split("/");
		String dir = sb.toString();
		File file = new File(dir);
		file.mkdirs();
		if(appendDir==null||"".equals(appendDir)){
			sb.append(File.separator);
			sb.append("index.html");
		}else{
			tokenizer = new StringTokenizer(appendDir, "?");
			tokenizer = new StringTokenizer(tokenizer.nextToken(), ".");
			sb.append(File.separator);
			sb.append(tokenizer.nextToken());
			sb.append(".html");
		}
		dir = sb.toString();
		return dir;
	}