/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package project.latex.balloon;
import java.io.File;
import java.io.IOException;
/**
*
* @author dgorst
*/
public class TestFileDeleteHelper {
public static void delete(File f) throws IOException {
if (f.isDirectory()) {
for (File c : f.listFiles()) {
delete(c);
}
}
if (!f.delete()) {
throw new IOException("Failed to delete file: " + f);
}
}
}