EMILUA(3em)
π 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
- 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