ResourceFinder class with a list(String, boolean) method.
| Access | Constructor and Description |
|---|---|
| public |
| ListableResourceFinder | back to summary |
|---|---|
| public ListableResourceFinder() | |
| list | back to summary |
|---|---|
| public abstract Iterable Returns all resources who's names start with a given string. Only resources with a content are included, no "special entries" of any kind, e.g. directories.
If the prefix string ends with "/", you will get a proper directory listing (recurse
resourceFinder.list("dir/", true) =>
dir/
dir/afile
dir/bfile
dir/adir/
dir/adir/file
dir/bdir/
dir/bdir/file
Otherwise, you will get a strange subset of a directory listing, resp. directory tree, as follows:
resourceFinder.list("dir/a", true) =>
dir/afile
dir/adir/
dir/adir/file
| |