MCPcopy
hub / github.com/callumalpass/tasknotes / hasRelativePathSegments

Function hasRelativePathSegments

src/utils/folderTemplateProcessor.ts:80–85  ·  view source on GitHub ↗
(folderPath: string)

Source from the content-addressed store, hash-verified

78}
79
80function hasRelativePathSegments(folderPath: string): boolean {
81 return folderPath
82 .replace(/\\/g, "/")
83 .split("/")
84 .some((segment) => segment === "." || segment === "..");
85}
86
87function normalizeRelativeFolderPath(folderPath: string): string {
88 const slashNormalizedPath = folderPath.replace(/\\/g, "/");

Callers 1

processFolderTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected