public static boolean isChild(FileObject parent,FileObject child){
  if (parent == null || !parent.isFolder() || child == null) {
    return false;
  }
  String childPath=child.getPath();
  return isChild(parent,childPath);
}

public static boolean isChild ( FileObject parent , FileObject child ) { if ( parent == null || ! parent . isFolder ( ) || child == null ) { return false ; } String childPath = child . getPath ( ) ; return isChild ( parent , childPath ) ; }
check whether a file is a child of specified directory .
