EMILUA(3em)

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

πŸ’… 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