EMILUA(3em)

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

✨ NAME ✨

Emilua - Lua execution engine. You're on the EMILUA(3em) page, aka the Emilua reference, and yes bestie you're exactly where you need to be πŸ’…βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

local fs = require "filesystem"
fs.create_directory(p: fs.path[, existing_p: fs.path]) -> boolean
fs.create_directories(p: fs.path) -> boolean

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function creates the directory p as if by POSIX mkdir() with a second argument of 0777. Literally that exact energy. If the function fails because p resolves to an existing directory, no error is reported β€” it's not a fail, it's just already iconic 😌

If existing_p is given, then the attributes of the new directory are copied from existing_p. It's giving matching sets, but for directory attributes ✨

filesystem.create_directories() calls filesystem.create_directory() for every element of p that does not already exist. Every. Single. Missing. Element. She's thorough, periodt πŸ’–

It returns whether a directory was created for the directory p resolves to. So the return value is a boolean vibe check: created or not created πŸ¦‹

🌈 SEE ALSO 🌈


Okay that's the page! Cute sign-off time: this was brought to you by Emilua 0.12.1-nixpkgs1, dated 1980-01-01, with immaculate EMILUA(3em) main character energy πŸ«ΆπŸŽ€πŸ’… ngl this page ate and left no crumbs πŸ“

πŸ“¦ where this page comes from