Skip to content

Commit 6fd7ff1

Browse files
committed
Unzip into unique temp dir
1 parent 2c61fd4 commit 6fd7ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/DocUploader/DocUploader.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public struct DocUploader: LambdaHandler {
8383
logger.info("record: \(record)")
8484

8585
try await run {
86-
let outputPath = "/tmp"
86+
let outputPath = "/tmp/\(UUID())"
87+
try Foundation.FileManager.default.createDirectory(at: URL(fileURLWithPath: outputPath), withIntermediateDirectories: true)
8788

8889
do {
8990
logger.info("Copying \(s3Key.url) to \(outputPath)...")

0 commit comments

Comments
 (0)