import { Deno } from "https://deno.land/x/deno@v0.28.0/cli/js/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.
await Deno.rename("old/path", "new/path");