Skip to main content
Module

x/denoversion/lib/lib.deno_runtime.d.ts>deno.copyFileSync

Deno cli to manage and bump release versions.
Latest
function deno.copyFileSync
import { deno } from "https://deno.land/x/denoversion@v1.0.2/lib/lib.deno_runtime.d.ts";
const { copyFileSync } = deno;

Copies the contents of a file to another by name synchronously. Creates a new file if target does not exists, and if target exists, overwrites original content of the target file.

It would also copy the permission of the original file to the destination.

  import { copyFileSync } from "deno";
  copyFileSync("from.txt", "to.txt");

Parameters

from: string
to: string