Skip to content

Commit 7354c81

Browse files
authored
fix(Storage): Fixing Swift list's code examples for multiple buckets (#7980)
1 parent 5a4a0fb commit 7354c81

File tree

1 file changed

+2
-4
lines changed
  • src/pages/[platform]/build-a-backend/storage/list-files

1 file changed

+2
-4
lines changed

src/pages/[platform]/build-a-backend/storage/list-files/index.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,7 @@ You can use `.fromOutputs(name:)` to provide a string representing the target bu
800800
801801
```swift
802802
let listResult = try await Amplify.Storage.list(
803-
path: .fromString("public/example/path/myFile.txt"),
804-
local: fileUrl,
803+
path: .fromString("public/photos/"),
805804
options: .init(
806805
bucket: .fromOutputs(name: "secondBucket")
807806
)
@@ -814,8 +813,7 @@ You can also use `.fromBucketInfo(_:)` to provide a bucket name and region direc
814813
815814
```swift
816815
let listResult = try await Amplify.Storage.list(
817-
path: .fromString("public/example/path/myFile.txt"),
818-
local: fileUrl,
816+
path: .fromString("public/photos/"),
819817
options: .init(
820818
bucket: .fromBucketInfo(.init(
821819
bucketName: "another-bucket-name",

0 commit comments

Comments
 (0)