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

Function isDirectory

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

Source from the content-addressed store, hash-verified

468}
469
470export const isDirectory = async (path: string): Promise<boolean> => {
471 try {
472 const stat = await fs.stat(path)
473 return stat.isDirectory()
474 } catch (error) {
475 return false
476 }
477}
478
479/**
480 * Escapes any HTML string special characters, like &, <, >, ", and '.

Callers 1

openInExistingInstanceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected