MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / pathExists

Function pathExists

packages/vite/helpers/prelink-angular.ts:6–13  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

4import type { Plugin } from 'vite';
5
6async function pathExists(p: string): Promise<boolean> {
7 try {
8 await fs.access(p);
9 return true;
10 } catch {
11 return false;
12 }
13}
14
15async function ensureDir(p: string) {
16 await fs.mkdir(p, { recursive: true });

Callers 1

prelinkPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected