EMILUA(3em)

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

πŸ’– NAME πŸ’–

okay so Emilua reference bestie, this is the EMILUA(3em) page, and Emilua - Lua execution engine is literally the name. That's the whole section β€” short, iconic, slay. πŸ’…

✨ SYNOPSIS ✨

here's the exact call shape, no cap:

local fs = require "filesystem"
fs.copy_file(from: fs.path, to: fs.path[, on_existing: "skip"|"overwrite"|"update"]) -> boolean

πŸ¦‹ DESCRIPTION πŸ¦‹

The description is giving β€œgo read the C++ reference, bestie”: See https://en.cppreference.com/w/cpp/filesystem/copy_file. That's the whole official pointer β€” I'm not adding extra lore, fr fr.

🌸 on_existing 🌸

on_existing is the vibe check for when the file already exists. Behavior when the file already exists:

  • nil β€” Report an error. 😭
  • "skip" β€” Keep the existing file, without reporting an error. 🫢
  • "overwrite" β€” Replace the existing file. πŸ”₯
  • "update" β€” Replace the existing file only if it is older than the file being copied. ⭐

kisses bestie β€” this was EMILUA(3em) from the Emilua reference, source/version Emilua 0.12.1-nixpkgs1, dated 1980-01-01. πŸ«ΆπŸ’…βœ¨

πŸ“¦ where this page comes from