diff --git a/Sources/Diagnose/DiagnoseCommand.swift b/Sources/Diagnose/DiagnoseCommand.swift index 8eaacd929..b0919d094 100644 --- a/Sources/Diagnose/DiagnoseCommand.swift +++ b/Sources/Diagnose/DiagnoseCommand.swift @@ -368,7 +368,9 @@ public struct DiagnoseCommand: AsyncParsableCommand { if let bundleOutputPath = self.bundleOutputPath { URL(fileURLWithPath: bundleOutputPath) } else { - FileManager.default.temporaryDirectory.appendingPathComponent("sourcekit-lsp-diagnose-\(date)") + FileManager.default.temporaryDirectory + .appendingPathComponent("sourcekit-lsp-diagnose") + .appendingPathComponent("sourcekit-lsp-diagnose-\(date)") } try FileManager.default.createDirectory(at: bundlePath, withIntermediateDirectories: true)