EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸŽ€ NAME

Emilua β€” the Lua execution engine, bestie. This is the 3em manual page and we’re gonna make it make sense. πŸ’…

✨ SYNOPSIS

local fs = require "filesystem"
fs.status(p: fs.path) -> { type: string, mode: integer|"unknown" }
fs.symlink_status(p: fs.path) -> { type: string, mode: integer|"unknown" }

πŸ’– DESCRIPTION

Okay so the actual reference is over at https://en.cppreference.com/w/cpp/filesystem/status β€” go look if you want the deep lore. πŸ¦‹

The returned object has a member named type, and the acceptable strings for it are literally:

  • "not_found"
  • "regular"
  • "directory"
  • "symlink"
  • "block"
  • "character"
  • "fifo"
  • "socket"
  • "junction" (Windows-only)
  • "unknown"

Then there’s the member named mode in the returned object: it refers to the POSIX file access mode (permissions). That’s the vibe. ✨


Sign-off cuteness: this page is serving Emilua 0.12.1-nixpkgs1, dated 1980-01-01 β€” periodt. 🫢🌸

πŸ“¦ where this page comes from