From 5298c509a7b0168f0edce9b28442feca914d15f7 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 1 Oct 2018 12:51:34 +0200 Subject: [PATCH] fixes #9126 --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 5c7d369c9..b5fc2da3e 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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)