in Sources/llbuild2fx/TreeMaterialization.swift [34:44]
func withTemporaryDirectory<R>(_ ctx: Context, _ body: (AbsolutePath) -> LLBFuture<R>) -> LLBFuture<R> {
do {
return try withTemporaryDirectory(removeTreeOnDeinit: false) { path in
body(path).always { _ in
_ = try? FileManager.default.removeItem(atPath: path.pathString)
}
}
} catch {
return ctx.group.next().makeFailedFuture(error)
}
}