org.eclipse.rse.services.clientserver.archiveutils
Class SystemArchiveUtil
java.lang.Object
org.eclipse.rse.services.clientserver.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 (c) IBM Corporation and others 2000, 2006. All Rights Reserved.