Skip to main content
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))}