(filePath: string)
| 22 | } |
| 23 | |
| 24 | function 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 | |
| 37 | function getNoteName(filePath: string): string { |
| 38 | const basename = path.posix.basename(filePath) |
no test coverage detected