public static synchronized void handleFailedSnapshot(File dir) { assert _failedSnapshotFile != null : "_failedSnapshotFile not initialized within WindowsFailedSnapshotTracker"; FileUtils.deleteRecursiveOnExit(dir); _failedSnapshotFile.println(dir.toString()); _failedSnapshotFile.flush(); }
public static synchronized void handleFailedSnapshot(File dir) { assert _failedSnapshotFile != null : "_failedSnapshotFile not initialized within WindowsFailedSnapshotTracker"; FileUtils.deleteRecursiveOnExit(dir); _failedSnapshotFile.println(dir.toString()); _failedSnapshotFile.flush(); }
public static synchronized void handleFailedSnapshot(File dir) { assert _failedSnapshotFile != null : "_failedSnapshotFile not initialized within WindowsFailedSnapshotTracker"; FileUtils.deleteRecursiveOnExit(dir); _failedSnapshotFile.println(dir.toString()); _failedSnapshotFile.flush(); }
public static synchronized void handleFailedSnapshot(File dir) { assert _failedSnapshotFile != null : "_failedSnapshotFile not initialized within WindowsFailedSnapshotTracker"; FileUtils.deleteRecursiveOnExit(dir); _failedSnapshotFile.println(dir.toString()); _failedSnapshotFile.flush(); }
/** * Schedules deletion of all file and subdirectories under "dir" on JVM shutdown. * @param dir Directory to be deleted */ public static void deleteRecursiveOnExit(File dir) { if (dir.isDirectory()) { String[] children = dir.list(); for (String child : children) deleteRecursiveOnExit(new File(dir, child)); } logger.trace("Scheduling deferred deletion of file: {}", dir); dir.deleteOnExit(); }
/** * Schedules deletion of all file and subdirectories under "dir" on JVM shutdown. * @param dir Directory to be deleted */ public static void deleteRecursiveOnExit(File dir) { if (dir.isDirectory()) { String[] children = dir.list(); for (String child : children) deleteRecursiveOnExit(new File(dir, child)); } logger.trace("Scheduling deferred deletion of file: {}", dir); dir.deleteOnExit(); }
/** * Schedules deletion of all file and subdirectories under "dir" on JVM shutdown. * @param dir Directory to be deleted */ public static void deleteRecursiveOnExit(File dir) { if (dir.isDirectory()) { String[] children = dir.list(); for (String child : children) deleteRecursiveOnExit(new File(dir, child)); } logger.trace("Scheduling deferred deletion of file: {}", dir); dir.deleteOnExit(); }
/** * Schedules deletion of all file and subdirectories under "dir" on JVM shutdown. * @param dir Directory to be deleted */ public static void deleteRecursiveOnExit(File dir) { if (dir.isDirectory()) { String[] children = dir.list(); for (String child : children) deleteRecursiveOnExit(new File(dir, child)); } logger.trace("Scheduling deferred deletion of file: {}", dir); dir.deleteOnExit(); }