Catch any exceptions in close.
Catch any exceptions in close.
Returns the FileTreeDataViews.Entry associated with the path specified by CachedDirectory.getPath.
Returns the FileTreeDataViews.Entry associated with the path specified by CachedDirectory.getPath.
the entry
Returns the maximum depth of children of subdirectories to include below the path specified by DirectoryView.getTypedPath.
Returns the maximum depth of children of subdirectories to include below the path specified by
DirectoryView.getTypedPath. For example, when the value is -1
, then the
DirectoryView should include only itself. When the value is 0
, it should include
all of the subdirectories and files in the path. When the value is 1
, it should
include all of the subdirectories and files in the path and all of the subdirectories and files
in the immediate subdirectories of the path, but not the children of these nested
subdirectories. When the value is Integer.MAX_VALUE
, all children of the path are
included.
the maximum depth of subdirectory children to include.
Return the path of the root directory.
Return the path of the root directory.
the path of the root directory.
Return the typed path of the root directory.
Return the typed path of the root directory.
the typed path of the root directory.
List all of the files for the path
, returning only those files that are accepted by the
provided filter.
List all of the files for the path
, returning only those files that are accepted by the
provided filter. Unlike FileTreeView, this implementation cannot throw an IOException
because list should be using the cache and not performing IO.
the root path to list
the maximum depth of subdirectories to query
include only paths accepted by the filter
a List of java.nio.file.Path instances accepted by the filter.
List all of the files in the root directory, returning only those files that are accepted by the provided filter.
List all of the files in the root directory, returning only those files that are accepted by the provided filter. Unlike FileTreeView, this implementation cannot throw an IOException because list should be using the cache and not performing IO.
the maximum depth of subdirectories to query
include only paths accepted by the filter
a List of java.nio.file.Path instances accepted by the filter.
List all of the files for the path
that are accepted by the filter
.
List all of the files for the path
that are accepted by the filter
.
the path to list. If this is a file, returns a list containing the Entry for the file or an empty list if the file is not monitored by the path.
the maximum depth of subdirectories to return
include only paths accepted by this
a List of Entry instances accepted by the filter. The list will be empty if the path is not a subdirectory of this CachedDirectory or if it is a subdirectory, but the CachedDirectory was created without the recursive flag.
List the children of the path specified by CachedDirectory.getPath, excluding the entry for the path itself.
List the children of the path specified by CachedDirectory.getPath, excluding the
entry for the path itself. When the maxDepth parameter is
-1
, return just the entry for the path itself.
the maximum depth of children (see DirectoryView.getMaxDepth)
only include entries matching this filter
a list containing all of the entries included by the filter up to the max depth.
Remove a path from the directory.
Remove a path from the directory.
the path to remove
a List containing the Entry instances for the removed path. The result also contains the cache entries for any children of the path when the path is a non-empty directory.
Updates the CachedDirectory entry for a particular typed path.
Updates the CachedDirectory entry for a particular typed path.
the path to update
if true, the contents of a directory will be re-scanned whenever a directory is updated. This can be very expensive since it must list the entire subtree of the directory and perform io to compute the cache value. It does make it more likely, however, that the cache gets out of sync with the file system tree.
a list of updates for the path. When the path is new, the updates have the oldCachedPath field set to null and will contain all of the children of the new path when it is a directory. For an existing path, the List contains a single Updates that contains the previous and new Entry.
Updates the CachedDirectory entry for a particular typed path.
Updates the CachedDirectory entry for a particular typed path.
the path to update
a list of updates for the path. When the path is new, the updates have the oldCachedPath field set to null and will contain all of the children of the new path when it is a directory. For an existing path, the List contains a single Updates that contains the previous and new Entry.