### Question:
FileUtils { public void mkdirsForFile(File file) { if (file == null) { return; } File dir = file.getParentFile(); if (dir != null && !dir.exists()) { mkdirs(dir); } }  void mkdirs(File dir); void mkdirs(Path path); void mkdirs(String path); void mkdirs(String parent, String... children); void mkdirsForFile(File file); void touch(File file); void touch(Path path); void touch(String filepath); String extension(String filename); int countFiles(File file); int countFiles(File file, Predicate<File> filter); int countDirs(File file); int countDirs(File file, Predicate<File> filter); String absolutePath(File file); boolean isSamePath(File file, File another); boolean isRoot(File dir); int delete(File file); int deleteFile(File file); int deleteDir(File file); File tempDir(); File tempBaseDir(); int cleanTempBaseDir(); File createTempDir(String first, String... children); String parseMimeType(String filename); String getMimeType(String extension); File download(String url); void download(String url, File file);  }### Answer:
@Test public void mkdirsForFile() { FileUtils.mkdirsForFile(new File("/tmp/a/5/a.log")); File file = new File("/tmp/a/5"); assertTrue(file.exists()); assertTrue(file.isDirectory()); assertEquals(2, FileUtils.delete(new File("/tmp/a"))); }