File.stat().
This commit is contained in:
+3
-10
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user