MCPcopy
hub / github.com/rclone/rclone / dirMove

Method dirMove

backend/cache/cache_internal_test.go:1099–1113  ·  view source on GitHub ↗
(t *testing.T, rootFs fs.Fs, src, dst string)

Source from the content-addressed store, hash-verified

1097}
1098
1099func (r *run) dirMove(t *testing.T, rootFs fs.Fs, src, dst string) error {
1100 var err error
1101
1102 if rootFs.Features().DirMove != nil {
1103 err = rootFs.Features().DirMove(context.Background(), rootFs, src, dst)
1104 if err != nil {
1105 return err
1106 }
1107 } else {
1108 t.Logf("DirMove not supported by %v", rootFs)
1109 return errNotSupported
1110 }
1111
1112 return err
1113}
1114
1115func (r *run) move(t *testing.T, rootFs fs.Fs, src, dst string) error {
1116 var err error

Calls 3

LogfMethod · 0.80
FeaturesMethod · 0.65
DirMoveMethod · 0.65

Tested by

no test coverage detected