org.apache.lucene.benchmark.byTask.utils

Class FileUtils


public class FileUtils
extends Object

File utilities.

Method Summary

static boolean
fullyDelete(File dir)
Delete files and directories, even if non-empty.

Method Details

fullyDelete

public static boolean fullyDelete(File dir)
            throws IOException
Delete files and directories, even if non-empty.
Parameters:
dir - file or directory
Returns:
true on success, false if no or part of files have been deleted

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.