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

Function pathIsFile

src/core/file-state.ts:75–81  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

73}
74
75export async function pathIsFile(filePath: string): Promise<boolean> {
76 try {
77 return (await fs.stat(filePath)).isFile();
78 } catch {
79 return false;
80 }
81}
82
83// Deliberately not FileSystemUtils.directoryExists: that variant
84// debug-logs non-ENOENT failures, which is noise inside prompt

Callers 3

readWorksetsStateFunction · 0.85
isStoreRootFunction · 0.85
readStoreRegistryStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected