We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33c5245 commit 9f1b569Copy full SHA for 9f1b569
Sources/DocUploader/DocUploader.swift
@@ -83,6 +83,8 @@ public struct DocUploader: LambdaHandler {
83
logger.info("record: \(record)")
84
85
try await run {
86
+ // When Lambdas are run in quick succession they seem to be seeing the same /tmp file system and unzipping can fail with
87
+ // lambda handler returned an error: Error Domain=NSCocoaErrorDomain Code=516 "A file with the same name already exists."
88
let outputPath = "/tmp/\(UUID())"
89
try Foundation.FileManager.default.createDirectory(at: URL(fileURLWithPath: outputPath), withIntermediateDirectories: true)
90
0 commit comments