use os.copyDir, not your own broken implementation of it

This commit is contained in:
Andreas Rumpf
2017-01-10 11:26:48 +01:00
parent 639fa92378
commit 3702d1f6c7

View File

@@ -425,15 +425,6 @@ proc temp(args: string) =
copyExe(output, finalDest)
if programArgs.len > 0: exec(finalDest & " " & programArgs)
proc copyDir(src, dest: string) =
for kind, path in walkDir(src, relative=true):
case kind
of pcDir: copyDir(dest / path, src / path)
of pcFile:
createDir(dest)
copyFile(src / path, dest / path)
else: discard
proc pushCsources() =
if not dirExists("../csources/.git"):
quit "[Error] no csources git repository found"