// Return an Object from a path
//
// If it can't be found it returns the error fs.ErrorObjectNotFound.
Return an Object from a path

If it can't be found it returns the error fs.ErrorObjectNotFound.
// Return an Object from a path // // If it can ' t be found it returns the error fs . ErrorObjectNotFound .
func (f *Fs) newObjectWithInfo(remote string, info *api.Prop) (fs.Object, error) {
	o := &Object{
		fs:     f,
		remote: remote,
	}
	var err error
	if info != nil {
		err = o.setMetaData(info)
	} else {
		err = o.readMetaData() 
	}
	if err != nil {
		return nil, err
	}
	return o, nil
}
func ( f * Fs ) newObjectWithInfo ( remote string , info * api . Prop ) ( fs . Object , error ) { o := & Object { fs : f , remote : remote , } var err error if info != nil { err = o . setMetaData ( info ) } else { err = o . readMetaData ( ) } if err != nil { return nil , err } return o , nil }
Return an Object from a path
Return an Object from a path
// Set info // reads info and meta, returning an error