@Test public void testRemove() throws Exception { doDelete(true); }
public static void remove(final File file) { if (null != file && file.exists()) { if (file.isDirectory()) { final File[] files = file.listFiles(); if (files != null) { for (final File child : files) { remove(child); } } } hackJDK4715154(); if (!file.delete()) { throw new IllegalStateException("Could not delete file: " + file.getAbsolutePath()); } } }
Files { public static void remove(final File file) { if (null != file && file.exists()) { if (file.isDirectory()) { final File[] files = file.listFiles(); if (files != null) { for (final File child : files) { remove(child); } } } hackJDK4715154(); if (!file.delete()) { throw new IllegalStateException("Could not delete file: " + file.getAbsolutePath()); } } } }
Files { public static void remove(final File file) { if (null != file && file.exists()) { if (file.isDirectory()) { final File[] files = file.listFiles(); if (files != null) { for (final File child : files) { remove(child); } } } hackJDK4715154(); if (!file.delete()) { throw new IllegalStateException("Could not delete file: " + file.getAbsolutePath()); } } }  }
Files { public static void remove(final File file) { if (null != file && file.exists()) { if (file.isDirectory()) { final File[] files = file.listFiles(); if (files != null) { for (final File child : files) { remove(child); } } } hackJDK4715154(); if (!file.delete()) { throw new IllegalStateException("Could not delete file: " + file.getAbsolutePath()); } } }  static File path(final String... parts); static File path(final File dir, final String... parts); static List<File> collect(final File dir, final String regex); static List<File> collect(final File dir, final Pattern pattern); static List<File> collect(final File dir, final FileFilter filter); static File exists(final File file, final String s); static File exists(final File file); static File dir(final File file); static File touch(final File file); static File file(final File file); static File notHidden(final File file); static File writable(final File file); static File readable(final File file); static File readableFile(final File file); static File mkdir(final File file); static File mkdir(final File file, final String name); static File tmpdir(); static File mkparent(final File file); static File mkdirs(final File file); static void deleteOnExit(final File file); static void flagForDeleteOnExit(final File file); static void delete(final File file); static void remove(final File file); static File select(final File dir, final String pattern); static Set<URL> listJars(final String path); static File toFile(final URL url); static String hash(final Set<URL> urls, final String algo); }
Files { public static void remove(final File file) { if (null != file && file.exists()) { if (file.isDirectory()) { final File[] files = file.listFiles(); if (files != null) { for (final File child : files) { remove(child); } } } hackJDK4715154(); if (!file.delete()) { throw new IllegalStateException("Could not delete file: " + file.getAbsolutePath()); } } }  static File path(final String... parts); static File path(final File dir, final String... parts); static List<File> collect(final File dir, final String regex); static List<File> collect(final File dir, final Pattern pattern); static List<File> collect(final File dir, final FileFilter filter); static File exists(final File file, final String s); static File exists(final File file); static File dir(final File file); static File touch(final File file); static File file(final File file); static File notHidden(final File file); static File writable(final File file); static File readable(final File file); static File readableFile(final File file); static File mkdir(final File file); static File mkdir(final File file, final String name); static File tmpdir(); static File mkparent(final File file); static File mkdirs(final File file); static void deleteOnExit(final File file); static void flagForDeleteOnExit(final File file); static void delete(final File file); static void remove(final File file); static File select(final File dir, final String pattern); static Set<URL> listJars(final String path); static File toFile(final URL url); static String hash(final Set<URL> urls, final String algo);  }