parent
357edd86b4
commit
62c113ebc7
4 changed files with 21 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ template endsWith(a: string, b: set[char]): bool =
|
|||
|
||||
proc joinPathImpl(result: var string, state: var int, tail: string) =
|
||||
let trailingSep = tail.endsWith({DirSep, AltSep}) or tail.len == 0 and result.endsWith({DirSep, AltSep})
|
||||
normalizePathEnd(result, trailingSep=false)
|
||||
addNormalizePath(tail, result, state, DirSep)
|
||||
normalizePathEnd(result, trailingSep=trailingSep)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue