MyCassandra-0.2.1/src/java/org/apache/cassandra/io/util/FileUtils.java
/**
     * Deletes all files and subdirectories under "dir".
     * @param dir Directory to be deleted
     * @throws IOException if any part of the tree cannot be deleted
     */
Deletes all files and subdirectories under "dir".
@param dir Directory to be deleted
@throws IOException if any part of the tree cannot be deleted
Deletes all files and subdirectories under " dir " . @param dir Directory to be deleted @throws IOException if any part of the tree cannot be deleted
public static void deleteRecursive(File dir) throws IOException
    {
        if (dir.isDirectory())
        {
            String[] children = dir.list();
            for (String child : children)
                deleteRecursive(new File(dir, child));
        }
        deleteWithConfirm(dir);
    }
public static void deleteRecursive ( File dir ) throws IOException { if ( dir . isDirectory ( ) ) { String [ ] children = dir . list ( ) ; for ( String child : children ) deleteRecursive ( new File ( dir , child ) ) ; } deleteWithConfirm ( dir ) ; }
Deletes all files and subdirectories under "dir".
Deletes all files and subdirectories under " dir " .
// The directory is now empty so now it can be smoked