Skip to content

Lua API Filesystem

Leonard Ramminger edited this page Aug 10, 2026 · 1 revision

Lua API — Filesystem (beez.fs)

Project-root file operations.

Function Input Output / effect
glob(pattern) glob string { path, ... } sorted array
exists(path) path boolean
join(a, b, ...) path segments joined path
copy(src, dst, [overwrite]) paths, bool? copies file or tree
remove(path) path deletes file or tree
for _, src in ipairs(beez.fs.glob("src/**/*.cpp")) do
    local obj = beez.fs.join("build", src:gsub("%.cpp$", ".o"))
    -- ...
end

← Lua API Overview

Clone this wiki locally