MCPcopy
hub / github.com/Fission-AI/OpenSpec / pathIsDirectory

Function pathIsDirectory

src/core/file-state.ts:87–93  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

85// validators, and pathIsFile has no FileSystemUtils equivalent - the
86// silent symmetric pair lives here.
87export async function pathIsDirectory(dirPath: string): Promise<boolean> {
88 try {
89 return (await fs.stat(dirPath)).isDirectory();
90 } catch {
91 return false;
92 }
93}
94
95async function sleep(milliseconds: number): Promise<void> {
96 await new Promise((resolve) => setTimeout(resolve, milliseconds));

Callers 4

openMethod · 0.85
validateFunction · 0.85
resolveMemberFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected