This commit is contained in:
2026-01-25 13:09:28 +01:00
parent 90618f2336
commit a830238d11
72 changed files with 4332 additions and 643 deletions
+12
View File
@@ -0,0 +1,12 @@
// retoor <retoor@molodetz.nl>
import "pathlib" for Path
var testFile = Path.new("/tmp/test_pathlib_size.txt")
var content = "12345678"
testFile.writeText(content)
var size = testFile.size()
System.print(size) // expect: 8
testFile.unlink()
+19
View File
@@ -0,0 +1,19 @@
// retoor <retoor@molodetz.nl>
import "pathlib" for Path
var testFile = Path.new("/tmp/test_pathlib_stat_times.txt")
testFile.writeText("test content")
var mtime = testFile.mtime()
var atime = testFile.atime()
var ctime = testFile.ctime()
System.print(mtime is Num) // expect: true
System.print(atime is Num) // expect: true
System.print(ctime is Num) // expect: true
System.print(mtime > 0) // expect: true
System.print(atime > 0) // expect: true
System.print(ctime > 0) // expect: true
testFile.unlink()