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

Function folderOf

src/resolution/php-web-root.ts:34–37  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

32
33/** The folder a project file is in, `/`-separated; '' is the project root. */
34export function folderOf(file: string): string {
35 const dir = path.posix.dirname(file.replace(/\\/g, '/'));
36 return dir === '.' ? '' : dir;
37}
38
39/** `folder` and each folder above it, the project root ('') last. */
40function foldersAbove(folder: string): string[] {

Callers 2

phpWebRootOfMethod · 0.90
inferPhpWebRootsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected