Function copySync
- copy
Sync (src, dest, options?): void Parameters
- src: string | URL
The source file/directory path as a string or URL.
- dest: string | URL
The destination file/directory path as a string or URL.
- options: CopyOptions = {}
Options for copying.
Returns void
A void value that returns once the copy operation completes.
See
https://docs.deno.com/runtime/manual/basics/permissions#file-system-access for more information on Deno's permissions system.
- src: string | URL
Synchronously copy a file or directory (along with its contents), like
cp -r.Both
srcanddestmust both be a file or directory.Requires
--allow-readand--allow-writepermissions.