MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / fileExists

Function fileExists

src/utils/file.ts:43–50  ·  view source on GitHub ↗
(dir: vscode.Uri, filename: string)

Source from the content-addressed store, hash-verified

41export type FileSearchStrategy = "all" | "one-up" | "sub";
42
43export const fileExists = async (dir: vscode.Uri, filename: string): Promise<boolean> => {
44 try {
45 await vscode.workspace.fs.stat(vscode.Uri.joinPath(dir, filename));
46 return true;
47 } catch (_e) {
48 return false;
49 }
50};
51
52async function directoryHasPackageJson(dir: vscode.Uri) {
53 try {

Callers 2

directoryHasPackageJsonFunction · 0.85
isRemixDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected