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

Function tryReadDirectory

src/utils/vscode.ts:284–290  ·  view source on GitHub ↗
(path: string | vscode.Uri)

Source from the content-addressed store, hash-verified

282export const joinPath = (base: vscode.Uri, ...args: string[]) => vscode.Uri.joinPath(base, ...args);
283
284export const tryReadDirectory = async (path: string | vscode.Uri) => {
285 try {
286 return await vscode.workspace.fs.readDirectory(typeof path === "string" ? vscode.Uri.file(path) : path);
287 } catch (e) {
288 return [];
289 }
290};
291export const tryReadFile = async (path: string | vscode.Uri) => {
292 try {
293 return await vscode.workspace.fs.readFile(typeof path === "string" ? vscode.Uri.file(path) : path);

Callers 4

getAvailableComponentsFunction · 0.90
generateShadcnUIFunction · 0.90
getAllRemixRoutesFunction · 0.90
getAllRoutesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected