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

Get a file at a specific version (ID) #64

Closed
wavded opened this issue May 15, 2019 · 3 comments
Closed

Get a file at a specific version (ID) #64

wavded opened this issue May 15, 2019 · 3 comments

Comments

@wavded
Copy link

wavded commented May 15, 2019

From what I can tell from reading the docs and looking at the issues is to get all versions of a file I need to use the ListHidden option. However, if I want to get a particular file at a specific version (using the direct fileID I believe), I don't see a way to do that. Can this be added or can I be corrected if I missed something?

@wavded
Copy link
Author

wavded commented May 16, 2019

I attempted to download a specific version using the the ListHidden option and an index (not terribly reliable of course) and looks like I found potential bug as well. Calling iter.Object().NewReader(context) when accessing an object that is a previous version of a file always gets me the latest version because NewReader appears to use the downloadFileByName from B2.

@kurin
Copy link
Owner

kurin commented May 16, 2019

This sounds similar enough to #62 that they probably should be solved together as soon as I have some time, which should be this week or next.

@wavded
Copy link
Author

wavded commented Jun 12, 2019

Hey @kurin, any plans still on this?

@wavded wavded closed this as completed Sep 24, 2020
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