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.
1 parent d14ef7e commit c92631fCopy full SHA for c92631f
Sources/FoundationEssentials/FileManager/SearchPaths/FileManager+DarwinSearchPaths.swift
@@ -162,10 +162,10 @@ extension String {
162
}
163
let euid = geteuid()
164
let trueUid = euid == 0 ? getuid() : euid
165
- guard let name = Platform.name(forUID: trueUid) else {
+ guard let home = Platform.homeDirectory(forUID: trueUid) else {
166
return self
167
168
- return name.appendingPathComponent(String(self.dropFirst()))
+ return home.appendingPathComponent(String(self.dropFirst()))
169
170
171
#endif // os(macOS) && FOUNDATION_FRAMEWORK
0 commit comments