Remote Systems
v6.4.1

com.ibm.etools.systems.core.archiveutils
Class SystemArchiveUtil

java.lang.Object
  extended bycom.ibm.etools.systems.core.archiveutils.SystemArchiveUtil

public class SystemArchiveUtil
extends Object


Constructor Summary
SystemArchiveUtil()
           
 
Method Summary
static boolean delete(File file)
          Helper method to delete a directory.
protected static boolean recursiveDelete(File file, HashSet found)
          Recursively delete a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemArchiveUtil

public SystemArchiveUtil()
Method Detail

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.

Remote Systems
v6.4.1

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.