public class DirectoryCleaner extends org.apache.commons.io.DirectoryWalker<Object>
| Constructor and Description |
|---|
DirectoryCleaner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleDirectoryEnd(File directory,
int depth,
Collection results) |
void |
removeEmptyDirectories(File rootDir)
Deletes all empty directories, including rootDir if it is empty at the end.
|
public void removeEmptyDirectories(File rootDir) throws IOException
rootDir - IOExceptionprotected void handleDirectoryEnd(File directory, int depth, Collection results)
handleDirectoryEnd in class org.apache.commons.io.DirectoryWalker<Object>Copyright © 2004-2016. All Rights Reserved.