Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function to move or copy blobs from one container to a different container #17

Closed
abfleishman opened this issue Oct 16, 2019 · 3 comments

Comments

@abfleishman
Copy link

I am wanting to move or copy blobs between two containers that may or may not be in the same storage account. It would be nice to have a method to do so. Also, it would be nice to be able to supply a vector of names to have a multi copy version or this.

@hongooi73
Copy link
Collaborator

The copy_url_to_storage function will let you copy files from an Internet URL to blob storage. This works for source storage accounts too; include a SAS in the URL for the blob if it's not public.

copy_url_to_storage(bl_cont,
    "https://srcaccount.blob.core.windows.net/container/blob?sv=....",
    "destblob")

I'm actually working on vectorised multiple file transfers right now. Should be able to merge it into master in the next week or so.

@abfleishman
Copy link
Author

Ok I will try that out. I will just have to figure out how to build the path to the blobs that I want to copy.

@hongooi73
Copy link
Collaborator

#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants