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

API to explore BlobTree directory, download individual files #73

Open
mortenpi opened this issue Oct 21, 2024 · 0 comments
Open

API to explore BlobTree directory, download individual files #73

mortenpi opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mortenpi
Copy link
Member

We could add some APIs to allow access to the files in a BlobTree without the user having to actually download the whole dataset. That metadata is available.

Just a sketch, but:

  1. JuliaHub.dataset_filetree(dataset) -> FileTree: returns a data structure that can be used to iterate over the file tree (maybe based on https://github.com/shashi/FileTrees.jl).
  2. JuliaHub.download_dataset_file(dataset, filepath, dstfile): downloads an individual file from a BlobTree, without having to download the whole BlobTree in one go.
@mortenpi mortenpi added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant