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");