MCPcopy Index your code
hub / github.com/zh-lx/code-inspector / getFilePathWithoutExt

Function getFilePathWithoutExt

packages/core/src/shared/utils.ts:38–40  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

36
37// 获取不带文件后缀名的文件路径
38export function getFilePathWithoutExt(filePath: string) {
39 return filePath.slice(0, filePath.lastIndexOf('.'));
40}
41
42export function normalizePath(filepath: string) {
43 let normalizedPath = path.normalize(filepath);

Callers 4

recordEntryFunction · 0.90
isTargetFileToInjectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected