Missing directory copy/move methods in librclone

What is the problem you are having with rclone?

I'm trying to develop an application using librclone. When I attempt to use sync/move and sync/copy methods through RcloneRPC function, I always get a 404 error saying that the methods are not found, even though they are present in the documentation. I would like to know how I can copy or move a directory with the library.

What is your rclone version (output from rclone version)

Commit 22e86ce3359a34f299aedd9d11a869ec0fecda74 on branch master
Version 1.56.0-DEV according to the method core/version

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10, 64 bit

Which cloud storage system are you using? (eg Google Drive)

The problem is not restricted to a specific cloud storage system. For testing, we can use a local filesystem.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

RcloneRPCResult result = RcloneRPC("sync/copy", "{\"srcFs\": \"local:source/dir\", \"dstFs\": \"local:destination\", \"createEmptySrcDirs\": true}");

The rclone config contents with secrets removed.

[local]
type = local
nounc = false

A log from the command with the -vv flag

Here is the result.Output from the previous C code.

{
  "error": "couldn't find method \"sync/copy\"",
  "input": {
    "createEmptySrcDirs": true,
    "dstFs": "local:destination",
    "srcFs": "local:source/dir"
  },
  "path": "sync/copy",
  "status": 404
}

That is brave, I'm sure I only implemented that last week :wink:

That sounds like a bug, easily fixed - give this branch a go

v1.56.0-beta.5518.a3b6c866e.fix-librclone on branch fix-librclone (uploaded in 15-30 mins)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.