EMILUA(3em)
β¨ 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 π
filesystem.mkdir(3em)β go look at this one too, bestie ππ
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
- 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