// FindChild look for a given id from its Links (1 level).
FindChild look for a given id from its Links (1 level).
// FindChild look for a given id from its Links ( 1 level ) .
func (vn *VNode) FindChild(i []byte) (*VNode, error) {
	if vn.Type == FileCode {
		return vn, ErrNotADir
	}
	for _, n := range vn.Links {
		if bytes.Equal(n.ID, i) {
			return n, nil
		}
	}
	return vn, ErrVNodeNotFound
}
func ( vn * VNode ) FindChild ( i [ ] byte ) ( * VNode , error ) { if vn . Type == FileCode { return vn , ErrNotADir } for _ , n := range vn . Links { if bytes . Equal ( n . ID , i ) { return n , nil } } return vn , ErrVNodeNotFound }
FindChild look for a given id from its Links (1 level).
FindChild look for a given id from its Links ( 1 level ) .