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 6e7b7f2 commit 22871e1Copy full SHA for 22871e1
Sources/SWBUtil/Path.swift
@@ -49,7 +49,7 @@ public struct Path: Serializable, Sendable {
49
50
/// The path's file system representation as a string.
51
public var str: String {
52
- return _str
+ return FilePath(_str).string
53
}
54
/// The system path separator.
55
#if os(Windows)
@@ -255,7 +255,6 @@ public struct Path: Serializable, Sendable {
255
public var isConformant: Bool {
256
257
//FIXME: The legacy implementation of will not work for windows roots. By default on windows we never use the legacy implementation.
258
- precondition(!useLegacyImplementation)
259
if let root = _impl.root?.string {
260
if root.rangeOfCharacter(from: Path.reservedRootPathCharacters) != nil {
261
return false
0 commit comments