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

View file

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