### Question:
FileUtil { public final static boolean createPaths(String paths) { File dir = new File(paths); return !dir.exists() && dir.mkdir(); }  static String fileMD5(File file); final static int countLines(File file); final static List<String> lines(File file); final static List<String> lines(File file, String encoding); final static List<String> lines(File file, int lines); final static List<String> lines(File file, int lines, String encoding); final static boolean appendLine(File file, String str); final static boolean appendLine(File file, String str, String encoding); final static boolean write(File file, String str); final static boolean writeAppend(File file, String str); final static boolean write(File file, String str, String encoding); final static boolean writeAppend(File file, String str, String encoding); final static boolean cleanFile(File file); final static String mimeType(String file); final static String fileType(File file); final static Date modifyTime(File file); final static boolean copy(String resourcePath, String targetPath); final static boolean copy(File file, String targetFile); final static boolean createPaths(String paths); final static boolean createFiles(String filePath); final static boolean deleteFile(File file); final static boolean deleteDir(File file); final static boolean deleteBigFile(File file); final static void copyDir(String filePath, String targetPath); final static void copyDir(File filePath, String targetPath); final static List<File> listFile(String path); final static List<File> listFile(String path, boolean child); final static List<File> listFile(File path); final static List<File> listFile(File path, boolean child); final static List<File> listFileAll(File path); final static List<File> listFileFilter(File path, FilenameFilter filter); final static List<File> listFileFilter(File dirPath, final String postfixs); final static List<File> searchFile(File dirPath, String fileName); final static List<File> searchFileReg(File dirPath, String reg); final static String suffix(File file); static MessageDigest MD5; }### Answer:
@Test public void testCreatePath() { System.out.println("创建文件夹,支持多级目录"); String path = TestUtil.path + "temp/"; String path1 = path + "/test/test2/"; String path2 = path + "/test/test3"; FileUtil.createPaths(path1); FileUtil.createPaths(path2); }