This commit is contained in:
2026-01-25 04:58:39 +01:00
parent 957e3a4762
commit 2e425571ca
139 changed files with 5078 additions and 73 deletions
+19
View File
@@ -0,0 +1,19 @@
// retoor <retoor@molodetz.nl>
import "pathlib" for Path
var dir = Path.new("/tmp/wren_pathlib_test_rename")
if (dir.exists()) dir.rmtree()
dir.mkdir()
var src = dir / "source.txt"
src.writeText("content")
System.print(src.exists()) // expect: true
var dst = dir / "dest.txt"
src.rename(dst)
System.print(src.exists()) // expect: false
System.print(dst.exists()) // expect: true
System.print(dst.readText()) // expect: content
dir.rmtree()