chore: fix some function names in comments

Signed-off-by: blackflytech <blackflytech@outlook.com>
This commit is contained in:
blackflytech
2026-07-02 11:30:15 +01:00
committed by Nick Craig-Wood
parent 761af75a25
commit b12251f07f
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1451,7 +1451,7 @@ func (f *Fs) createOrUpdate(ctx context.Context, file string, createTime time.Ti
return info, nil
}
// copyOrMoves copies or moves directories or files depending on the method parameter
// copyOrMove copies or moves directories or files depending on the method parameter
func (f *Fs) copyOrMove(ctx context.Context, method, src, dest string) (info *api.JottaFile, err error) {
opts := rest.Opts{
Method: "POST",
+1 -1
View File
@@ -1330,7 +1330,7 @@ func (o *Object) isDynamicLargeObject(ctx context.Context) (bool, error) {
return o.hasHeader(ctx, "X-Object-Manifest")
}
// isStaticLargeObjectFile checks for the X-Static-Large-Object header
// isStaticLargeObject checks for the X-Static-Large-Object header
func (o *Object) isStaticLargeObject(ctx context.Context) (bool, error) {
if o.fs.opt.NoLargeObjects {
return false, nil
+1 -1
View File
@@ -662,7 +662,7 @@ func (f *Fs) Purge(ctx context.Context, dir string) error {
return f.purgeCheck(ctx, dir, false)
}
// copyOrMoves copies or moves directories or files depending on the method parameter
// copyOrMove copies or moves directories or files depending on the method parameter
func (f *Fs) copyOrMove(ctx context.Context, method, src, dst string, overwrite bool) (err error) {
opts := rest.Opts{
Method: "POST",
+1 -1
View File
@@ -18,7 +18,7 @@ type vfsHandler struct {
*vfs.VFS
}
// vfsHandler returns a Handlers object with the test handlers.
// newVFSHandler returns a Handlers object with the test handlers.
func newVFSHandler(vfs *vfs.VFS) sftp.Handlers {
v := vfsHandler{VFS: vfs}
return sftp.Handlers{
+1 -1
View File
@@ -376,7 +376,7 @@ func TestRemoteServing(t *testing.T) {
testServer(t, tests, &opt)
}
// checkServeRemote must reject request-derived backend instantiation on the
// TestCheckServeRemote must reject request-derived backend instantiation on the
// unauthenticated file-serving path, and global.* config mutation.
func TestCheckServeRemote(t *testing.T) {
for _, test := range []struct {