Here you can find the source of deleteRecursive(File file)
Parameter | Description |
---|---|
file | directory to remove recursively TODO: duplicate with org.pathvisio.util.FileUtils |
public static void deleteRecursive(File file)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.io.File; public class Main { /**//w w w . j av a 2 s. co m * Think "deltree" or "rm -r". * @param file directory to remove recursively * TODO: duplicate with org.pathvisio.util.FileUtils */ public static void deleteRecursive(File file) { if (file.isDirectory()) { for (File f : file.listFiles()) deleteRecursive(f); } file.delete(); } }