We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
URL.homeDirectory
FileManager.homeDirectoryForCurrentUser
1 parent b91412e commit 7a0f81aCopy full SHA for 7a0f81a
Sources/SWBCore/SwiftSDK.swift
@@ -79,7 +79,7 @@ public struct SwiftSDK: Sendable {
79
create: false
80
).appendingPathComponent("org.swift.swiftpm")
81
} else {
82
- spmURL = FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".swiftpm")
+ spmURL = URL.homeDirectory.appendingPathComponent(".swiftpm")
83
}
84
return try spmURL.appendingPathComponent("swift-sdks").filePath
85
0 commit comments