org.apache.jetspeed.util
Class DirectoryUtils
java.lang.Object
org.apache.jetspeed.util.DirectoryUtils
public class DirectoryUtils
- extends Object
Method Summary |
static void |
main(String[] args)
|
static boolean |
rmdir(File dir)
Removes a directory and all subdirectories and files beneath it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryUtils
public DirectoryUtils()
main
public static void main(String[] args)
rmdir
public static final boolean rmdir(File dir)
- Removes a directory and all subdirectories and files beneath it.
- Parameters:
directory
- The name of the root directory to be deleted.
- Returns:
- boolean If all went successful, returns true, otherwise false.
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.