fixes #9126
This commit is contained in:
parent
3d60f1b0af
commit
5298c509a7
1 changed files with 1 additions and 1 deletions
|
|
@ -1048,7 +1048,7 @@ proc copyDir*(source, dest: string) {.rtl, extern: "nos$1",
|
||||||
## these platforms use `copyDirWithPermissions() <#copyDirWithPermissions>`_.
|
## these platforms use `copyDirWithPermissions() <#copyDirWithPermissions>`_.
|
||||||
createDir(dest)
|
createDir(dest)
|
||||||
for kind, path in walkDir(source):
|
for kind, path in walkDir(source):
|
||||||
var noSource = path.substr(source.len()+1)
|
var noSource = path.substr(source.len)
|
||||||
case kind
|
case kind
|
||||||
of pcFile:
|
of pcFile:
|
||||||
copyFile(path, dest / noSource)
|
copyFile(path, dest / noSource)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue