code: public List<CmsJlanNetworkFile> search(String name, int searchAttributes) throws IOException {
  
          try {
              load(false);
              if (m_resource.isFolder()) {
                  List<CmsJlanNetworkFile> result = new ArrayList<CmsJlanNetworkFile>();
                  String regex = WildCard.convertToRegexp(name);
                  Pattern pattern = Pattern.compile(regex);
                  List<CmsResource> children = m_cms.getResourcesInFolder(
                      m_cms.getSitePath(m_resource),
                      CmsJlanDiskInterface.STANDARD_FILTER);
                  for (CmsResource child : children) {
                      CmsJlanNetworkFile childFile = new CmsJlanNetworkFile(m_cms, child, getFullChildPath(child));
                      if (!matchesSearchAttributes(searchAttributes)) {
                          continue;
                      }
                      if (!pattern.matcher(child.getName()).matches()) {
                          continue;
                      }
  
                      result.add(childFile);
                  }
                  return result;
              } else {
                  throw new AccessDeniedException("Can't search a non-directory!");
              }
          } catch (CmsException e) {
              throw CmsJlanDiskInterface.convertCmsException(e);
          }
      }
docs: Collects all files matching the given name pattern and search attributes.<p>
  
  @param name the name pattern
  @param searchAttributes the search attributes
  
  @return the list of file objects which match the given parameters
  
  @throws IOException if something goes wrong