MCPcopy Index your code
hub / github.com/coder/code-server / isFile

Function isFile

src/node/util.ts:461–468  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

459}
460
461export const isFile = async (path: string): Promise<boolean> => {
462 try {
463 const stat = await fs.stat(path)
464 return stat.isFile()
465 } catch (error) {
466 return false
467 }
468}
469
470export const isDirectory = async (path: string): Promise<boolean> => {
471 try {

Callers 1

vscode.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected