code: public List<CmsJspResourceWrapper> readFilesInFolder(String resourcePath, String filterString) throws CmsException {
  
          CmsResourceFilter filter = CmsResourceFilter.DEFAULT;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(filterString)) {
              String[] types = filterString.split(",");
              for (String type : types) {
                  if (OpenCms.getResourceManager().hasResourceType(type)) {
                      filter.addRequireType(OpenCms.getResourceManager().getResourceType(type));
                  }
              }
          }
          return CmsJspElFunctions.convertResourceList(m_cms, m_cms.getFilesInFolder(resourcePath, filter));
      }
docs: Reads the resources in the given folder using the provided filter.<p>
  
  @param resourcePath the site path to the folder
  @param filterString a comma separated list of resource type names
  
  @return the resources
  
  @throws CmsException in case reading the resources fails