Rclone backend/command cannot find command

I have already used movefile - to transfer a file - but now I need to move a folder so it can be renamed. I am sorry I did not put this in my original post, I should have added that.

Currently to move a folder I use three API calls. I am creating a web interface and thus these commands are automatically executed in order after the previous command finished.

  • /operations/mkdir (making the new empty dir in case the folder that we want to rename is empty)
  • /sync/move (move the contents to the new folder)
  • /operations/purge (delete the old folder)

I would like to use async and have this all in one command. I can't add async now because of the purge at the end.