diff --git a/src/pages/[platform]/build-a-backend/storage/list-files/index.mdx b/src/pages/[platform]/build-a-backend/storage/list-files/index.mdx index fc800635832..546124747a9 100644 --- a/src/pages/[platform]/build-a-backend/storage/list-files/index.mdx +++ b/src/pages/[platform]/build-a-backend/storage/list-files/index.mdx @@ -800,8 +800,7 @@ You can use `.fromOutputs(name:)` to provide a string representing the target bu ```swift let listResult = try await Amplify.Storage.list( - path: .fromString("public/example/path/myFile.txt"), - local: fileUrl, + path: .fromString("public/photos/"), options: .init( bucket: .fromOutputs(name: "secondBucket") ) @@ -814,8 +813,7 @@ You can also use `.fromBucketInfo(_:)` to provide a bucket name and region direc ```swift let listResult = try await Amplify.Storage.list( - path: .fromString("public/example/path/myFile.txt"), - local: fileUrl, + path: .fromString("public/photos/"), options: .init( bucket: .fromBucketInfo(.init( bucketName: "another-bucket-name",