Package net.sourceforge.jnlp.cache
Class CacheDirectory
java.lang.Object
net.sourceforge.jnlp.cache.CacheDirectory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
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 ArrayList
<DirectoryNode> getLeafData
(DirectoryNode root) Get all the leaf nodes.
-
Field Details
-
INFO_SUFFIX
- See Also:
-
-
Method Details
-
getDirStructure
Get the structure of directory for keeping track of the protocol and domain.- Parameters:
root
- Location of cache directory.
-
getLeafData
Get all the leaf nodes.- Parameters:
root
- The point where we want to start getting the leafs.- Returns:
- An ArrayList of DirectoryNode.
-
cleanDir
Removes empty folders in the current directory.- Parameters:
root
- File pointing at the beginning of directory.- Returns:
- True if something was deleted.
-
cleanParent
This will recursively remove the parent folders if they are empty.- Parameters:
fileNode
- node of file which parent is going to be cleaned
-