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

Add function to list all files in a bucket #18

Closed
HomelessDinosaur opened this issue Mar 12, 2024 · 6 comments · Fixed by #20
Closed

Add function to list all files in a bucket #18

HomelessDinosaur opened this issue Mar 12, 2024 · 6 comments · Fixed by #20
Labels
enhancement New feature or request good first issue Good for newcomers released

Comments

@HomelessDinosaur
Copy link
Member

Add functionality to list all the files in a bucket. Should behaviour like so:

import 'package:nitric_sdk/nitric.dart';

final assets = Nitric.bucket("assets").requires([
  BucketPermission.reading,
  BucketPermission.deleting,
]);

final files = await assets.files();

await Future.wait(files.map((file) async {
  await file.delete();
}))
@nitric-bot
Copy link

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@nitric-bot
Copy link

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

4 similar comments
@nitric-bot
Copy link

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@nitric-bot
Copy link

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@nitric-bot
Copy link

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@nitric-bot
Copy link

🎉 This issue has been resolved in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants