method
Fs.copy
Fs.copy(src, dst) -> bool
Copies a file's bytes to a new path (atomically at the destination), returning true on success. Binary-safe, so it works for assets as well as text. Copying directories is a follow-up.
Parameters
srcthe source pathdstthe destination pathExample
program Copy {
entry {
if Fs.copy("saves/slot1.json", "saves/slot1.bak") { print(1) }
}
}