MCPcopy Create free account
hub / github.com/denoland/std / assertMissing

Function assertMissing

fs/unstable_write_file_test.ts:24–28  ·  view source on GitHub ↗
(path: string | URL)

Source from the content-addressed store, hash-verified

22const isBun = navigator.userAgent.includes("Bun/");
23
24function assertMissing(path: string | URL) {
25 if (pathExists(path)) {
26 throw new Error("File: ${path} exists");
27 }
28}
29
30function pathExists(path: string | URL): boolean {
31 try {

Callers 1

Calls 1

pathExistsFunction · 0.70

Tested by

no test coverage detected