Module fs/metadata
fs/metadata
File metadata via statx with ergonomic accessors.
Uses the Exception effect for error handling.
Example
{ metadata } :: import "std/fs/metadata";
main :: (fn(io : Io, exn : Exception) -> unit)({
m := io.await(metadata(Path.new(`/tmp/test.txt`), io), { io, exn });
printf("size: %lld\n", m.size());
printf("is file: %d\n", i32(m.is_file()));
});
Types
Metadata
struct
Metadata
Trait Implementations
Dispose