Retoor software development Projects Research SearchXNG
Register Sign In

4 lines
98 B
Plaintext
Raw Normal View History

feat: add File.stat() method and Stat class for filesystem metadata queries Implement asynchronous stat() on File class returning a new Stat object with device, inode, mode, linkCount, user, group, specialDevice, size, blockSize, and blockCount fields populated from libuv uv_fs_stat callback. Register foreign method statPath_ in module registry, bump MAX_METHODS_PER_CLASS to 10, add Stat class to io.wren with indexed field accessors, update documentation index with Stat page, and include test coverage for stat on existing file and nonexistent path.
2016-01-01 18:58:44 +01:00
import "io" for File
File.stat("nonexistent") // expect runtime error: no such file or directory
Reference in New Issue Copy Permalink
87334da1df
wren/test/io/file/stat_static_nonexistent.wren
Response time: 83ms
Mail Licenses API