// NewObject creates a new remote union file object based on the first Object it finds (reverse remote order)
NewObject creates a new remote union file object based on the first Object it finds (reverse remote order)
// NewObject creates a new remote union file object based on the first Object it finds ( reverse remote order )
func (f *Fs) NewObject(path string) (fs.Object, error) {
	for i := range f.remotes {
		var remote = f.remotes[len(f.remotes)-i-1]
		var obj, err = remote.NewObject(path)
		if err == fs.ErrorObjectNotFound {
			continue
		}
		if err != nil {
			return nil, errors.Wrapf(err, "NewObject failed on %v", remote)
		}
		return obj, nil
	}
	return nil, fs.ErrorObjectNotFound
}
func ( f * Fs ) NewObject ( path string ) ( fs . Object , error ) { for i := range f . remotes { var remote = f . remotes [ len ( f . remotes ) - i - 1 ] var obj , err = remote . NewObject ( path ) if err == fs . ErrorObjectNotFound { continue } if err != nil { return nil , errors . Wrapf ( err , " " , remote ) } return obj , nil } return nil , fs . ErrorObjectNotFound }
NewObject creates a new remote union file object based on the first Object it finds (reverse remote order)
NewObject creates a new remote union file object based on the first Object it finds ( reverse remote order )