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 2954e55 commit 8fe451bCopy full SHA for 8fe451b
Sources/TSCBasic/Path.swift
@@ -685,6 +685,9 @@ private struct UNIXPath: Path {
685
686
init(validatingAbsolutePath path: String) throws {
687
#if os(Windows)
688
+ guard path != "" else {
689
+ throw PathValidationError.invalidAbsolutePath(path)
690
+ }
691
let fsr: UnsafePointer<Int8> = path.fileSystemRepresentation
692
defer { fsr.deallocate() }
693
@@ -707,6 +710,9 @@ private struct UNIXPath: Path {
707
710
708
711
init(validatingRelativePath path: String) throws {
709
712
713
714
+ self.init(normalizingRelativePath: path)
715
716
717
718
0 commit comments