MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isFile

Function isFile

src/resolution/path-aliases.ts:151–157  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

149 */
150function resolveExtendsTarget(spec: string, fromDir: string): string | null {
151 const isFile = (p: string): boolean => {
152 try {
153 return fs.statSync(p).isFile();
154 } catch {
155 return false;
156 }
157 };
158
159 if (spec.startsWith('./') || spec.startsWith('../') || path.isAbsolute(spec)) {
160 const base = path.resolve(fromDir, spec);

Callers 2

resolveExtendsTargetFunction · 0.85
inferPhpWebRootsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected