EMILUA(3em)
π
EMILUA β the 3em manual, bestie edition π
okay so real talk, welcome to Emilua, a whole Lua execution engine β¨ and today we're looking at one tiny lil function that eats paths for breakfast. it's giving "short but iconic" and honestly? obsessed.
β¨ NAME β¨
Emilua β a Lua execution engine, periodt π the (3em) section tag is right there in the corner, iykyk.
π¦ SYNOPSIS π¦
like, literally copy this into your file and go:
local fs = require "filesystem"
fs.is_empty(p: fs.path) -> boolean
so you pull in the "filesystem" module, hand fs.is_empty a fs.path named p, and it hands you back a boolean. no cap, that's the whole vibe check π
πΈ DESCRIPTION πΈ
bestie, it's simple and that's the beauty of it: fs.is_empty checks whether the given path refers to an empty file or directory. that's it. that's the function. path goes in, the emptiness question gets asked, a boolean comes back out π«Ά
lowkey the most main-character-energy one-liner in the whole filesystem module ngl π
π§ reminder: the argument is a fs.path, not a string you just vibed into existence. respect the type or it's not gonna slay. π
sign-off time, angels π this little page came from Emilua 0.12.1-nixpkgs1, dated 1980-01-01 (yes, that date is real, and yes, it's iconic in a cursed way π). go be empty, or don't, we support both πβ
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms