Java File Delete delete(File classDir)

Here you can find the source of delete(File classDir)

Description

delete

License

CDDL license

Declaration

public static void delete(File classDir) 

Method Source Code


//package com.java2s;
//License from project: CDDL license 

import java.io.File;

public class Main {
    public static void delete(File classDir) {
        File[] files = classDir.listFiles();
        if (files != null) {
            for (File f : files) {
                delete(f);/*from   w  w w  .  j  a  v  a  2  s  .  co  m*/
            }
        }

        classDir.delete();
    }
}

Related

  1. clearFile(File file)
  2. clearFile(String directory)
  3. clearFile(String pFileName)
  4. clearFileOrDir(File file)
  5. delete(File aFile)
  6. delete(File current)
  7. delete(File dir)
  8. delete(File dir)
  9. delete(File dir)