Skip to main content
The Deno 2 Release Candidate is here
Learn more
function CopyFile
import { CopyFile } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

Copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting. Fails if target path is a directory or is unwritable.

See https://deno.land/api@v1.40.3?unstable=true&s=Deno.copyFile

Parameters

unnamed 0: { from: string | URL; to: string | URL; }

Returns

The empty string.