MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getFolderPath

Function getFolderPath

src/main/import/notes/obsidian.ts:24–35  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

22}
23
24function getFolderPath(filePath: string): string[] {
25 const directory = path.posix.dirname(filePath)
26
27 if (!directory || directory === '.') {
28 return []
29 }
30
31 return directory
32 .split('/')
33 .map(part => normalizeImportEntryName(part, 'Imported'))
34 .filter(Boolean)
35}
36
37function getNoteName(filePath: string): string {
38 const basename = path.posix.basename(filePath)

Callers 1

Calls 1

normalizeImportEntryNameFunction · 0.90

Tested by

no test coverage detected