copySync(): void
Synchronously copy a file or directory (along with its contents), like
cp -r.
Both src and dest must both be a file or directory.
Requires --allow-read and --allow-write permissions.
Basic usage
Basic usage
import { copySync } from "@std/fs/copy"; copySync("./foo", "./bar");
This will copy the file or directory at ./foo to ./bar without
overwriting.
optional
options: CopyOptions
Options for copying.
https://docs.deno.com/runtime/manual/basics/permissions#file-system-access for more information on Deno's permissions system.