RSE
Release 1.0

org.eclipse.rse.services.clientserver.archiveutils
Class SystemArchiveUtil

java.lang.Object
  extended byorg.eclipse.rse.services.clientserver.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.

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.