Here you can find the source of deleteDir(File f)
Parameter | Description |
---|---|
f | a parameter |
public static void deleteDir(File f)
//package com.java2s; import java.io.File; public class Main { /**/*from w ww.j ava 2s . c o m*/ * * @param f */ public static void deleteDir(File f) { try { if (f.isDirectory()) { for (File c : f.listFiles()) { deleteDir(c); } } f.delete(); } catch (Exception e) { } } }