deno.land / std@0.157.0 / fs / testdata / exists_sync.ts

exists_sync.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
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 instanceof Error ? err.message : "[non-error thrown]", ), );}
std

Version Info

Tagged at
a year ago