Skip to main content
Module

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

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

Renames (moves) oldpath to newpath. If newpath already exists and is not a directory, rename() replaces it. OS-specific restrictions may apply when oldpath and newpath are in different directories.

  import { rename } from "deno";
  await rename("old/path", "new/path");

Parameters

oldpath: string
newpath: string

Returns

Promise<void>