-
Couldn't load subscription status.
- Fork 83
!feat: simulate directory in blob list #121
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
Conversation
|
Thanks for the PR! I would like to give a consistent experience for what is returned from the interface BlobListResult {
blobs: []
hasMore: boolean
cursor?: string
folders?: string[]
}Also, adding the option // Folded mode
const { blobs, folders } = await hubBlob().list({ folded: true })
// Expanded mode
const { blobs } = await hubBlob().list()By returning We should be able to do: const { list } = hubBlob()
let hasMore = true
let cursor
while (hasMore) {
const res = await list({
limit: 10,
cursor,
})
hasMore = res.hasMore
cursor = res.cursor
} |
Buckets accepts const { blobs, folders } = await hubBlob().list({ delimiter: '/' }) |
Deploying nuxthub-docs with
|
| Latest commit: |
8069b00
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4fdfbc26.nuxthub-module.pages.dev |
| Branch Preview URL: | https://feat-blob-folders.nuxthub-module.pages.dev |
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
resolves #101
This creates a slightly breaking change when delimiter is defined in request
CleanShot.2024-05-27.at.18.20.44.mp4