Update Sources/System/FilePath/FilePathTemp.swift

Co-authored-by: Karoy Lorentey <klorentey@apple.com>
This commit is contained in:
Alastair HoughtonandKaroy Lorentey authored and Guillaume Lessard committed 2024-10-14 15:59:36 -07:00
1 parent e293300430
commit bcc7f6d569
1 file changed
+4 -2
+4 -2
View File
@@ -9,8 +9,10 @@
// MARK: - API
public func withTemporaryPath<R>(basename: FilePath.Component,
_ body: (FilePath) throws -> R) throws -> R {
public func withTemporaryPath<R>(
basename: FilePath.Component,
_ body: (FilePath) throws -> R
) throws -> R {
let temporaryDir = try createUniqueTemporaryDirectory(basename: basename)
defer {
try? recursiveRemove(at: temporaryDir)