File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/pages/[platform]/build-a-backend/storage/list-files Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -800,8 +800,7 @@ You can use `.fromOutputs(name:)` to provide a string representing the target bu
800
800
801
801
```swift
802
802
let listResult = try await Amplify.Storage.list(
803
- path: .fromString("public/example/path/myFile.txt"),
804
- local: fileUrl,
803
+ path: .fromString("public/photos/"),
805
804
options: .init(
806
805
bucket: .fromOutputs(name: "secondBucket")
807
806
)
@@ -814,8 +813,7 @@ You can also use `.fromBucketInfo(_:)` to provide a bucket name and region direc
814
813
815
814
```swift
816
815
let listResult = try await Amplify.Storage.list(
817
- path: .fromString("public/example/path/myFile.txt"),
818
- local: fileUrl,
816
+ path: .fromString("public/photos/"),
819
817
options: .init(
820
818
bucket: .fromBucketInfo(.init(
821
819
bucketName: "another-bucket-name",
You can’t perform that action at this time.
0 commit comments