List files
You can list all of the objects uploaded:
Amplify.Storage.list { event in switch event { case let .success(listResult): print("Completed") listResult.items.forEach { item in print("Key: \(item.key)") } case let .failure(storageError): print("Failed: \(storageError.errorDescription). \(storageError.recoverySuggestion)") }}
let sink = Amplify.Storage.list() .resultPublisher .sink { if case let .failure(storageError) = $0 { print("Failed: \(storageError.errorDescription). \(storageError.recoverySuggestion)") } } receiveValue: { listResult in print("Completed") listResult.items.forEach { item in print("Key: \(item.key)") } }