File.stat().

This commit is contained in:
Bob Nystrom
2016-01-01 09:58:44 -08:00
parent b054526df8
commit 5cd8a06fa0
11 changed files with 195 additions and 11 deletions
+3 -10
View File
@@ -1,13 +1,6 @@
import "io" for File
import "scheduler" for Scheduler
System.print(File.size("test/io/file/size.wren")) // expect: 270
// Runs asynchronously.
Scheduler.add {
System.print("async")
}
System.print(File.size("test/io/file/size.wren"))
// expect: async
// expect: 270
var file = File.open("test/io/file/file.txt")
System.print(file.size) // expect: 19
file.close()