class FileConnection implements ObjectStoreConnection {

    private static boolean delete(File f) {
        if (f.exists()) {
            if (f.isDirectory()) {

                File[] fileList = f.listFiles();
                if (fileList != null) {
                    for (File ff : fileList) {
                        delete(ff);
                    }
                }
            }
            if (!f.delete()) {
                throw new RuntimeException("Cannot delete file: " + f);
            }
            return true;
        }
        return false;
    }

    public  FileConnection(File rootDir, File quotaDir);

}