Java File Delete doDelete(File f)

Here you can find the source of doDelete(File f)

Description

do Delete

License

Open Source License

Declaration

public static void doDelete(File f) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static void doDelete(File f) {
        try {/*from  w w w .j  a  v  a2  s.c  o  m*/
            if (f != null && f.exists()) {
                f.delete();
            }
        } catch (Exception e) {
        }
    }
}

Related

  1. delete(File file)
  2. delete(File file)
  3. delete(File file)
  4. delete(File file)
  5. delete(File file)
  6. doDelete(File file)
  7. doDelete(File file)
  8. doDelete(File path)
  9. doDeleteEmptyDir(String dir)