We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6756827 commit 84378d8Copy full SHA for 84378d8
src/cli/IO.fs
@@ -180,7 +180,9 @@ module IO =
180
else joined
181
182
let simplifyPath (path: string): string =
183
- Path.GetFullPath(path)
+ let simplified = Path.GetFullPath path
184
+ if simplified = (Path.DirectorySeparatorChar |> string) then simplified
185
+ else simplified.TrimEnd(Path.DirectorySeparatorChar)
186
187
/// Finds the largest common path across multiple paths.
188
let findLargestCommonPath (paths: string list) : string =
0 commit comments