NewObject creates a new remote http file object
(ctx context.Context, remote string)
| 372 | |
| 373 | // NewObject creates a new remote http file object |
| 374 | func (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 |
| 387 | func (f *Fs) url(remote string) string { |