com.ibm.etools.systems.core.archiveutils
Class SystemArchiveUtil
java.lang.Object
com.ibm.etools.systems.core.archiveutils.SystemArchiveUtil
- public class SystemArchiveUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemArchiveUtil
public SystemArchiveUtil()
delete
public static boolean delete(File file)
- Helper method to delete a directory. Deletes the children of the directory before
deleting the directory itself. This method is required because a directory can not be deleted if it
is not empty.
- Returns:
true
if the deletion was successful, false
otherwise.
recursiveDelete
protected static boolean recursiveDelete(File file,
HashSet found)
- Recursively delete a file.
- Parameters:
file
- the file or directory.found
- a set of files that have been considered.
- Returns:
true
if deletion successful, false
otherwise.
Copyright © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.