code: public static boolean isSubPath(org.apache.hadoop.fs.Path parent, org.apache.hadoop.fs.Path child) throws IOException {
      String childStr = child.toString();
      String parentStr = parent.toString();
  
      return childStr.startsWith(parentStr);
    }
docs: *
  Check if child path is child of parent path.
  @param parent Expected parent path.
  @param child Expected child path.
  @return If child path is child of parent path.
  @throws IOException