func (s *Shell) List(path string) ([]*LsLink, error) {
	var out struct{ Objects []LsObject }
	err := s.Request("ls", path).Exec(context.Background(), &out)
	if err != nil {
		return nil, err
	}
	if len(out.Objects) != 1 {
		return nil, errors.New("bad response from server")
	}
	return out.Objects[0].Links, nil
}
func (s *Shell) List(path string) ([]*LsLink, error) {
	var out struct{ Objects []LsObject }
	err := s.Request("ls", path).Exec(context.Background(), &out)
	if err != nil {
		return nil, err
	}
	if len(out.Objects) != 1 {
		return nil, errors.New("bad response from server")
	}
	return out.Objects[0].Links, nil
}
func ( s * Shell ) List ( path string ) ( [ ] * LsLink , error ) { var out struct { Objects [ ] LsObject } err := s . Request ( " " , path ) . Exec ( context . Background ( ) , & out ) if err != nil { return nil , err } if len ( out . Objects ) != 1 { return nil , errors . New ( " " ) } return out . Objects [ 0 ] . Links , nil }
// List entries at the given path
List entries at the given path