MCPcopy Index your code
hub / github.com/graphif/project-graph / splitRelativePath

Function splitRelativePath

app/src/utils/pathString.tsx:267–270  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

265 }
266
267 function splitRelativePath(relativePath: string) {
268 relativePath = relativePath.replace(/\\/g, "/");
269 return relativePath.split("/").filter((p) => p !== "");
270 }
271
272 // 辅助函数:判断字符串是否有文件扩展名
273 function hasFileExtension(filename: string): boolean {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected