Skip to content

std:fs module

Experimental

The std:fs module mirrors filesystem reads, writes, and metadata operations from Rust's standard library.

PropertyValue
Namespacestd
Sourcesrc/lua/std/fs.rs
Teststests/std/fs.test.luau
StabilityExperimental
Mirrorstd::fs

Syntax

lua
local fs = require("std:fs")

Description

WARNING

This reference page is a stub. The full Lua surface is captured in the module source listed above and exercised by the test file. A spec PR following the spec-driven development workflow will land the contracted surface here.

Until that lands, the source and tests are the contract.

See also