code: static Iterator<String> getChildren(InternalWsResource parent, File wrappedFile, final String regex) {
          String[] listFiles = wrappedFile.list(new FilenameFilter()
          {
              Pattern p = Pattern.compile(regex);
  
              @Override
              public boolean accept(File dir, String name)
          {
              // Add a trailing slash to the child name if it's a directory
              // -- this allows filtering for files/directories in the regex
              // based on the presence of the trailing /
              File f = new File(dir, name);
              if (f.isDirectory())
                  name += '/';
  
              Matcher m = p.matcher(name);
              return m.matches();
          }
          });
  
          return new ResourceIterators.ChildIterator(wrappedFile, listFiles);
      }
docs: {@inheritDoc}