Commit Graph

2 Commits

Author SHA1 Message Date
Bob Nystrom
beaa1b7c73 fix: relax directory stat assertions to avoid filesystem-specific values
Replace hardcoded expected values for linkCount and size with range checks
(>=1 and >0 respectively) so the test passes across different filesystems
that may report varying directory metadata.
2016-01-05 15:32:51 +00:00
Bob Nystrom
7186b04bed feat: add File.stat static method and test for directory stat
Add a new `File.stat(path)` static method that returns a `Stat` object with low-level file system metadata for both files and directories. Include a test file `stat_static_directory.wren` that validates the returned `Stat` object's type and field types (device, inode, mode, linkCount, user, group, specialDevice, size, blockSize, blockCount) against a known test directory.
2016-01-01 18:05:31 +00:00