in src/main/java/org/apache/sling/scripting/java/impl/SlingIOProvider.java [159:175]
public Set<String> getResourcePaths(final String path) {
final Set<String> paths = new HashSet<String>();
try {
final Resource resource = getResourceInternal(path);
if (resource != null) {
final Iterator<Resource> entries =
resource.getResourceResolver().listChildren(resource);
while (entries.hasNext()) {
paths.add(entries.next().getPath());
}
}
} catch (SlingException se) {
logger.warn("Unable to get resource at path " + path, se);
}
return paths.isEmpty() ? null : paths;
}