// DatasetOpen open dataset and all of its recursive children datasets
DatasetOpen open dataset and all of its recursive children datasets
// DatasetOpen open dataset and all of its recursive children datasets
func DatasetOpen(path string) (d Dataset, err error) {
	csPath := C.CString(path)
	d.list = C.dataset_open(csPath)
	C.free(unsafe.Pointer(csPath))
	if d.list == nil || d.list.zh == nil {
		err = LastError()
		if err == nil {
			err = newError(ENoent, "dataset not found.")
		}
		err = wrapError(err, fmt.Sprintf("%s - %s", err.Error(), path))
		return
	}
	d.Type = DatasetType(C.dataset_type(d.list))
	d.Properties = make(map[Prop]Property)
	err = d.ReloadProperties()
	if err != nil {
		return
	}
	err = d.openChildren()
	return
}
func DatasetOpen ( path string ) ( d Dataset , err error ) { csPath := C . CString ( path ) d . list = C . dataset_open ( csPath ) C . free ( unsafe . Pointer ( csPath ) ) if d . list == nil || d . list . zh == nil { err = LastError ( ) if err == nil { err = newError ( ENoent , " " ) } err = wrapError ( err , fmt . Sprintf ( " " , err . Error ( ) , path ) ) return } d . Type = DatasetType ( C . dataset_type ( d . list ) ) d . Properties = make ( map [ Prop ] Property ) err = d . ReloadProperties ( ) if err != nil { return } err = d . openChildren ( ) return }
DatasetOpen open dataset and all of its recursive children datasets
DatasetOpen open dataset and all of its recursive children datasets