List getEntryPaths()

in src/main/java/org/apache/sling/bundleresource/impl/BundleResourceCache.java [162:182]


    List<String> getEntryPaths(String path) {
        List<String> list = listCache.get(path);
        if (list == null) {

            Enumeration<String> entries = bundle.getEntryPaths(path);
            if (entries != null && entries.hasMoreElements()) {
                list = new LinkedList<>();
                while (entries.hasMoreElements()) {
                    list.add(entries.nextElement());
                }
            }

            if (list == null) {
                list = NOT_FOUND_CHILDREN;
            }

            listCache.put(path, list);
        }

        return list;
    }