code: private boolean matchParentPath(String expectedParent, String path) {
  
          String parent = CmsResource.getParentFolder(path);
          if (parent == null) {
              return false;
          }
          return matchPath(expectedParent, parent);
      }
docs: Checks if a given path is a direct descendant of another path.<p>
  
  @param expectedParent the expected parent folder
  @param path a path
  @return true if the path is a direct child of expectedParent