Skip to content

Commit 8f2e9a1

Browse files
ekjotmultaniekjotmultani
authored andcommitted
allow the s3 list api to accept an optional bucket
1 parent 980c0d6 commit 8f2e9a1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/amplify_core/lib/src/types/storage/list_options.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class StorageListOptions
2727

2828
/// {@macro amplify_core.storage.list_plugin_options}
2929
final StorageListPluginOptions? pluginOptions;
30+
31+
/// an optional bucket to specify which bucket to return the list for
32+
final StorageBucket? bucket;
3033

3134
/// an optional bucket to specify which bucket to return the list for
3235
final StorageBucket? bucket;

packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class AmplifyStorageS3Dart extends StoragePluginInterface
124124
});
125125
}
126126

127-
@override
127+
@override
128128
S3ListOperation list({
129129
required StoragePath path,
130130
StorageListOptions? options,
@@ -152,6 +152,7 @@ class AmplifyStorageS3Dart extends StoragePluginInterface
152152
);
153153
}
154154

155+
155156
@override
156157
S3GetPropertiesOperation getProperties({
157158
required StoragePath path,

0 commit comments

Comments
 (0)