diff options
author | Araq <rumpf_a@web.de> | 2018-10-01 12:51:34 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-01 12:51:44 +0200 |
commit | 5298c509a7b0168f0edce9b28442feca914d15f7 (patch) | |
tree | fee1f0b52b48c9250ba3a1e939762674340ec0d8 | |
parent | 3d60f1b0af6fc3d8d9446a87bd26ff054562fa20 (diff) | |
download | Nim-5298c509a7b0168f0edce9b28442feca914d15f7.tar.gz |
fixes #9126
-rw-r--r-- | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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) |