Skip to main content
Module

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

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

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

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

Parameters

oldpath: string
newpath: string