code: protected static boolean isChildOf(String parent, String child) {
          if(parent == null || child == null)
              return false;
          if(!child.startsWith(parent))
              return false;
          if(child.length() <= parent.length())
              return false;
          int from=parent.equals(File.separator)? parent.length() : parent.length() +1;
          //  if(from-1 > child.length())
              // return false;
          String[] comps=Util.components(child.substring(from), File.separator);
          return comps != null && comps.length <= 1;
      }
docs: Verifies whether child is a child (dir or file) of parent
  @param parent
  @param child
  @return True if child is a child, false otherwise