MCPcopy
hub / github.com/rclone/rclone / NewObject

Method NewObject

backend/http/http.go:374–384  ·  view source on GitHub ↗

NewObject creates a new remote http file object

(ctx context.Context, remote string)

Source from the content-addressed store, hash-verified

372
373// NewObject creates a new remote http file object
374func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) {
375 o := &Object{
376 fs: f,
377 remote: remote,
378 }
379 err := o.head(ctx)
380 if err != nil {
381 return nil, err
382 }
383 return o, nil
384}
385
386// Join's the remote onto the base URL
387func (f *Fs) url(remote string) string {

Callers 1

TestOpenFunction · 0.95

Calls 1

headMethod · 0.95

Tested by 1

TestOpenFunction · 0.76