// retoor <retoor@molodetz.nl>
import "pathlib" for Path
var dir = Path.new("/tmp/wren_pathlib_test_copy")
if (dir.exists()) dir.rmtree()
dir.mkdir()
var src = dir / "original.txt"
src.writeText("copy me")
var dst = dir / "copied.txt"
src.copyfile(dst)
System.print(dst.exists()) // expect: true
System.print(dst.readText()) // expect: copy me
dir.rmtree()