MCPcopy
hub / github.com/rclone/rclone / SetRoot

Method SetRoot

lib/rest/rest.go:72–77  ·  view source on GitHub ↗

SetRoot sets the default RootURL. You can override this on a per call basis using the RootURL field in Opts.

(RootURL string)

Source from the content-addressed store, hash-verified

70// SetRoot sets the default RootURL. You can override this on a per
71// call basis using the RootURL field in Opts.
72func (api *Client) SetRoot(RootURL string) *Client {
73 api.mu.Lock()
74 defer api.mu.Unlock()
75 api.rootURL = RootURL
76 return api
77}
78
79// SetHeader sets a header for all requests
80// Start the key with "*" for don't canonicalise

Callers 15

NewFsFunction · 0.80
NewFsFunction · 0.80
NewFsFunction · 0.80
NewFsFunction · 0.80
initFunction · 0.80
NewFsFunction · 0.80
NewFsFunction · 0.80
NewFsFunction · 0.80
NewFsFunction · 0.80
initFunction · 0.80
NewFsFunction · 0.80
NewFsFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected