2016-02-07 17:56:16 +00:00
|
|
|
import "io" for Stat
|
2016-01-01 18:05:31 +00:00
|
|
|
|
2016-02-07 17:56:16 +00:00
|
|
|
var stat = Stat.path("test/io/directory/dir")
|
2016-01-01 18:05:31 +00:00
|
|
|
|
|
|
|
|
System.print(stat is Stat) // expect: true
|
|
|
|
|
System.print(stat.device is Num) // expect: true
|
|
|
|
|
System.print(stat.inode is Num) // expect: true
|
|
|
|
|
System.print(stat.mode is Num) // expect: true
|
2016-01-05 15:32:51 +00:00
|
|
|
System.print(stat.linkCount >= 1) // expect: true
|
2016-01-01 18:05:31 +00:00
|
|
|
System.print(stat.user is Num) // expect: true
|
|
|
|
|
System.print(stat.group is Num) // expect: true
|
|
|
|
|
System.print(stat.specialDevice) // expect: 0
|
2020-02-16 23:52:08 +00:00
|
|
|
System.print(stat.size is Num) // expect: true
|
2016-01-01 18:05:31 +00:00
|
|
|
System.print(stat.blockSize is Num) // expect: true
|
|
|
|
|
System.print(stat.blockCount is Num) // expect: true
|