MCPcopy Create free account
hub / github.com/Effect-TS/effect / rename

Function rename

packages/platform/deno/src/DenoFileSystem.ts:375–376  ·  view source on GitHub ↗
(oldPath, newPath)

Source from the content-addressed store, hash-verified

373const realPath: FileSystem.FileSystem["realPath"] = (path) => tryPromise("realPath", path, () => Deno.realPath(path))
374
375const rename: FileSystem.FileSystem["rename"] = (oldPath, newPath) =>
376 tryPromise("rename", oldPath, () => Deno.rename(oldPath, newPath))
377
378const stat: FileSystem.FileSystem["stat"] = (path) =>
379 Effect.map(

Callers

nothing calls this directly

Calls 1

tryPromiseFunction · 0.70

Tested by

no test coverage detected