@Test public void checkDeeperParentCreationInquiryAndSubsequentCreation() { File file = new File(CoreTestConstants.OUTPUT_DIR_PREFIX + "/fu" + diff + "/bla/testing.txt"); cleanupList.add(file); cleanupList.add(file.getParentFile()); cleanupList.add(file.getParentFile().getParentFile()); assertFalse(file.getParentFile().exists()); assertTrue(FileUtil.createMissingParentDirectories(file)); assertTrue(file.getParentFile().exists()); }
static public boolean createMissingParentDirectories(File file) { File parent = file.getParentFile(); if (parent == null) { return true; } parent.mkdirs(); return parent.exists(); }
FileUtil extends ContextAwareBase { static public boolean createMissingParentDirectories(File file) { File parent = file.getParentFile(); if (parent == null) { return true; } parent.mkdirs(); return parent.exists(); } }
FileUtil extends ContextAwareBase { static public boolean createMissingParentDirectories(File file) { File parent = file.getParentFile(); if (parent == null) { return true; } parent.mkdirs(); return parent.exists(); } FileUtil(Context context); }
FileUtil extends ContextAwareBase { static public boolean createMissingParentDirectories(File file) { File parent = file.getParentFile(); if (parent == null) { return true; } parent.mkdirs(); return parent.exists(); } FileUtil(Context context); static URL fileToURL(File file); static boolean createMissingParentDirectories(File file); String resourceAsString(ClassLoader classLoader, String resourceName); void copy(String src, String destination); }
FileUtil extends ContextAwareBase { static public boolean createMissingParentDirectories(File file) { File parent = file.getParentFile(); if (parent == null) { return true; } parent.mkdirs(); return parent.exists(); } FileUtil(Context context); static URL fileToURL(File file); static boolean createMissingParentDirectories(File file); String resourceAsString(ClassLoader classLoader, String resourceName); void copy(String src, String destination);  }