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

exists_sync.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
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));}
std

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉