Skip to content

Return list of copied files to support atomic copy+move #73

Description

@nicolasreichel

Hi, I think it would be great if rclone.copy/rclone.copyto/rclone.sync were to return a list of affected files at the end. This would allow for atomic copy+move (copying a set of files followed by moving those exact same files) whilst still using the efficient batch mode. Currently you'd have to do something like rclone.lsjson and a per-file copy, or accept that the bulk copy+move is not atomic. This copy+move pattern is a common use case in transfer orchestration.

I can fork and submit a PR with a suggested implementation if that's helpful?

Thanks for the nice wrapper library!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions