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

Implement copying files #57

Merged
merged 1 commit into from
Feb 3, 2021
Merged

Conversation

remmelt
Copy link
Contributor

@remmelt remmelt commented Dec 3, 2020

The b2 API supports copying files through the endpoint b2_copy_file.

The options array supports BucketName or BucketId, FileName, SaveAs, and
optionally destinationBucketId or destinationBucketName.

As a bonus, there is now getFileIdFromBucketIdAndFileName, a faster
way to retrieve FileIds for single files.

@remmelt remmelt force-pushed the implement-copy-file branch 5 times, most recently from 709dfec to 785766d Compare December 3, 2020 17:19
src/Client.php Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/Client.php Show resolved Hide resolved
@mlambley
Copy link
Member

mlambley commented Feb 1, 2021

Hi @remmelt thanks for your interest in this project. I'd love to include this in the next release if you don't mind addressing the changes I requested above? Cheers.

@remmelt remmelt requested a review from mlambley February 2, 2021 11:52
README.md Outdated Show resolved Hide resolved
The b2 API supports copying files through the endpoint b2_copy_file.

The options array supports BucketName or BucketId, FileName, SaveAs, and
optionally destinationBucketId or destinationBucketName.

As a bonus, there is now getFileIdFromBucketIdAndFileName, a faster
way to retrieve FileIds for single files.
@mlambley
Copy link
Member

mlambley commented Feb 3, 2021

Cheers buddy I'll merge it in soon.

@mlambley mlambley merged commit 634b535 into gliterd:develop Feb 3, 2021
@mlambley
Copy link
Member

mlambley commented Feb 3, 2021

All done. Thanks.

@remmelt remmelt deleted the implement-copy-file branch June 3, 2021 12:20
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

Successfully merging this pull request may close these issues.

None yet

2 participants