Skip to content

Commit 22871e1

Browse files
committed
Remove legacy implementation for windows
1 parent 6e7b7f2 commit 22871e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SWBUtil/Path.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public struct Path: Serializable, Sendable {
4949

5050
/// The path's file system representation as a string.
5151
public var str: String {
52-
return _str
52+
return FilePath(_str).string
5353
}
5454
/// The system path separator.
5555
#if os(Windows)
@@ -255,7 +255,6 @@ public struct Path: Serializable, Sendable {
255255
public var isConformant: Bool {
256256
#if os(Windows)
257257
//FIXME: The legacy implementation of will not work for windows roots. By default on windows we never use the legacy implementation.
258-
precondition(!useLegacyImplementation)
259258
if let root = _impl.root?.string {
260259
if root.rangeOfCharacter(from: Path.reservedRootPathCharacters) != nil {
261260
return false

0 commit comments

Comments
 (0)