mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes #9126
This commit is contained in:
@@ -1048,7 +1048,7 @@ proc copyDir*(source, dest: string) {.rtl, extern: "nos$1",
|
||||
## these platforms use `copyDirWithPermissions() <#copyDirWithPermissions>`_.
|
||||
createDir(dest)
|
||||
for kind, path in walkDir(source):
|
||||
var noSource = path.substr(source.len()+1)
|
||||
var noSource = path.substr(source.len)
|
||||
case kind
|
||||
of pcFile:
|
||||
copyFile(path, dest / noSource)
|
||||
|
||||
Reference in New Issue
Block a user