public final class CacheDirectory
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | cleanDir(java.io.File root)Removes empty folders in the current directory. | 
| static void | cleanParent(DirectoryNode fileNode)This will recursively remove the parent folders if they are empty. | 
| static void | getDirStructure(DirectoryNode root)Get the structure of directory for keeping track of the protocol and
 domain. | 
| static java.util.ArrayList<DirectoryNode> | getLeafData(DirectoryNode root)Get all the leaf nodes. | 
public static void getDirStructure(DirectoryNode root)
root - Location of cache directory.public static java.util.ArrayList<DirectoryNode> getLeafData(DirectoryNode root)
root - The point where we want to start getting the leafs.public static boolean cleanDir(java.io.File root)
root - File pointing at the beginning of directory.public static void cleanParent(DirectoryNode fileNode)
fileNode - node of file which parent is going to be cleaned