mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
fs: fix typos found by codespell
This commit is contained in:
parent
207b64865e
commit
f6576237a4
@ -192,7 +192,7 @@ func (tr *Transfer) Snapshot() TransferSnapshot {
|
||||
// rcStats returns stats for the transfer suitable for the rc
|
||||
func (tr *Transfer) rcStats() rc.Params {
|
||||
return rc.Params{
|
||||
"name": tr.remote, // no locking needed to access thess
|
||||
"name": tr.remote, // no locking needed to access this
|
||||
"size": tr.size,
|
||||
}
|
||||
}
|
||||
|
@ -376,7 +376,7 @@ func configAll(ctx context.Context, name string, m configmap.Mapper, ri *RegInfo
|
||||
//
|
||||
// *all-ACTION,NUMBER,ADVANCED
|
||||
//
|
||||
// Where NUMBER is the curent state, ADVANCED is a flag true or false
|
||||
// Where NUMBER is the current state, ADVANCED is a flag true or false
|
||||
// to say whether we are asking about advanced config and
|
||||
// ACTION is what the state should be doing next.
|
||||
stateParams, state := StatePop(in.State)
|
||||
|
@ -789,7 +789,7 @@ func TestCopyURL(t *testing.T) {
|
||||
headerFilename := "headerfilename.txt"
|
||||
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if status != 0 {
|
||||
http.Error(w, "an error ocurred", status)
|
||||
http.Error(w, "an error occurred", status)
|
||||
}
|
||||
if nameHeader {
|
||||
w.Header().Set("Content-Disposition", `attachment; filename="folder\`+headerFilename+`"`)
|
||||
@ -863,7 +863,7 @@ func TestCopyURLToWriter(t *testing.T) {
|
||||
status := 0
|
||||
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if status != 0 {
|
||||
http.Error(w, "an error ocurred", status)
|
||||
http.Error(w, "an error occurred", status)
|
||||
return
|
||||
}
|
||||
_, err := w.Write([]byte(contents))
|
||||
@ -1694,7 +1694,7 @@ func TestRcatMetadata(t *testing.T) {
|
||||
gotMeta, err := fs.GetMetadata(ctx, o)
|
||||
require.NoError(t, err)
|
||||
// Check the specific user data we set is set
|
||||
// Likey there will be other values
|
||||
// Likely there will be other values
|
||||
assert.Equal(t, "value", gotMeta["key"])
|
||||
assert.Equal(t, "potato", gotMeta["sausage"])
|
||||
|
||||
@ -1781,7 +1781,7 @@ func TestRcatSizeMetadata(t *testing.T) {
|
||||
gotMeta, err := fs.GetMetadata(ctx, o)
|
||||
require.NoError(t, err)
|
||||
// Check the specific user data we set is set
|
||||
// Likey there will be other values
|
||||
// Likely there will be other values
|
||||
assert.Equal(t, "value", gotMeta["key"])
|
||||
assert.Equal(t, "potato", gotMeta["sausage"])
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Package rc implements a remote control server and registry for rclone
|
||||
//
|
||||
// To register your internal calls, call rc.Add(path, function). Your
|
||||
// function should take ane return a Param. It can also return an
|
||||
// function should take and return a Param. It can also return an
|
||||
// error. Use rc.NewError to wrap an existing error along with an
|
||||
// http response type if another response other than 500 internal
|
||||
// error is required on error.
|
||||
|
Loading…
Reference in New Issue
Block a user