EMILUA(3em)

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

πŸ’œ EMILUA (3em) β€” the emilua manual page, bestie edition

Okay so this is the manual for emilua, the Lua execution engine, and this particular page is about one lil filesystem function that you're gonna use all the time. Grab a snack, we're doing this. πŸ“


✨ NAME ✨

Emilua β€” Lua execution engine. That's the whole vibe. It's a Lua engine, it runs Lua, it does it gorgeously. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

Here's exactly how you call it, copy-paste ready, no cap:

local fs = require "filesystem"
fs.file_size(p: fs.path) -> integer

So yeah β€” you pull in the filesystem module, hand it a path, and it hands you back an integer. Clean. Iconic. The way that signature just works. ✨


🌸 DESCRIPTION 🌸

Okay so real talk: for a regular file p, this bad boy returns its size in bytes. That's it. That's the function. It's giving "simple, effective, main character energy" β€” you give it a path to a regular file, it tells you how chunky that file is, measured in bytes. 🫢

Like, p is typed as fs.path, so it wants a proper filesystem path β€” not your random string you found on the floor, bestie. And it comes back as an integer, so you can do math with it immediately, no conversion era required. πŸ’–

Heads up πŸ‘‘ β€” the page specifically says regular file, so that's the case it's describing. It does not spill the tea about anything else, so don't @ me with extra claims. 😭

πŸ¦‹ SEE YOU LATER, BESTIE πŸ¦‹

That's the page! Go forth and measure your regular files. 🧚

This edition of the manual is Emilua 0.12.1-nixpkgs1, dated 1980-01-01 β€” yes, that date is real, and yes, it's a whole mood. πŸŒˆπŸ’€

πŸ“¦ where this page comes from