Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/fs/testdata/exists_sync.ts

Deno standard library
Go to Latest
File
import { existsSync } from "../exists.ts";
try { const isExist = existsSync(Deno.args[0]); Deno.stdout.write(new TextEncoder().encode(isExist ? "exist" : "not exist"));} catch (err) { Deno.stdout.write(new TextEncoder().encode(err.message));}