/** * Deletes the specified path. Folders are recursively deleted.<br> * If file(s) cannot be deleted, no feedback is provided (fail silently). * * @param path path to be deleted */ public static void delete(Path path) { try { deleteWithException(path); } catch (IOException e) { // Ignore a failed delete } }
/** * Deletes the specified path. Folders are recursively deleted.<br> * If file(s) cannot be deleted, no feedback is provided (fail silently). * * @param path path to be deleted */ public static void delete(Path path) { try { deleteWithException(path); } catch (IOException e) { // Ignore a failed delete } }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes the specified file. Folders are recursively deleted.<br> * Throws exception if any of the files could not be deleted. * * @param file file to be deleted * @throws IOException if the file (or contents of a folder) could not be * deleted */ public static void deleteWithException(File file) throws IOException { deleteWithException(file.toPath()); }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public boolean delete(String path) throws Exception { File dest = getFile(path); IO.deleteWithException(dest); return true; }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public boolean delete(String path) throws Exception { File dest = getFile(path); IO.deleteWithException(dest); return true; }
/** * Deletes and creates directories */ public static void initialize(File dir) { try { deleteWithException(dir); mkdirs(dir); } catch (IOException e) { throw new RuntimeException(e); } }
public boolean clear(URI uri) throws Exception { File f = getCacheFileFor(uri); boolean exists = f.isFile(); if (f != null && exists) { IO.deleteWithException(f); } f = getCacheInfoFileFor(uri); if (f != null && f.isFile()) { IO.deleteWithException(f); } infos.remove(f); return exists; }
public boolean clear(URI uri) throws Exception { File f = getCacheFileFor(uri); boolean exists = f.isFile(); if (f != null && exists) { IO.deleteWithException(f); } f = getCacheInfoFileFor(uri); if (f != null && f.isFile()) { IO.deleteWithException(f); } infos.remove(f); return exists; }