This commit is contained in:
Araq
2018-10-01 12:51:34 +02:00
parent 3d60f1b0af
commit 5298c509a7

View File

@@ -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)