MCPcopy Create free account
hub / github.com/continuedev/continue / getRelativePath

Function getRelativePath

extensions/cli/src/util/loadMarkdownSkills.ts:34–38  ·  view source on GitHub ↗

get the relative path if the filePath is within the current working directory * otherwise return the absolute path

(cwd: string, filePath: string)

Source from the content-addressed store, hash-verified

32 * otherwise return the absolute path
33 */
34function getRelativePath(cwd: string, filePath: string) {
35 return filePath.startsWith(cwd)
36 ? path.join(".", path.relative(cwd, filePath))
37 : filePath;
38}
39
40function getFilePathsInSkillDirectory(
41 cwd: string,

Callers 2

loadMarkdownSkillsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected