EMILUA(3em)
π NAME π
Emilua β the Lua execution engine. Yes bestie, this is the EMILUA(3em) manual page, and we're about to get into some fs.copy energy. π
π¦ SYNOPSIS π¦
local fs = require "filesystem"
fs.copy(from: fs.path, to: fs.path[, opts: table])
πΈ DESCRIPTION πΈ
Okay so the full tea is over at https://en.cppreference.com/w/cpp/filesystem/copy. Go read that if you need the deep lore, iykyk. π
π opts π
Here's the whole menu for the opts table, no skips. β¨
existingβ"skip"|"overwrite"|"update"|nilβ 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. β³
recursiveβboolean = falsefalseβ skip subdirectories. πtrueβ recursively copy subdirectories and their content. π
symlinksβ"copy"|"skip"|nilnilβ follow symlinks. π"copy"β copy symlinks as symlinks, not as the files they point to. πͺ"skip"β ignore symlinks. π«
copyβ"directories_only"|"create_symlinks"|"create_hardlinks"|nilnilβ copy file content. π"directories_only"β copy the directory structure, but do not copy any non-directory files. π"create_symlinks"β instead of creating copies of files, create symlinks pointing to the originals. π"create_hardlinks"β instead of creating copies of files, create hardlinks that resolve to the same files as the originals. π§²
Bestie, that's the whole page. Stay iconic. π β¨
This page was brought to you by source/version Emilua 0.12.1-nixpkgs1, dated 1980-01-01. ππ
π¦ 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