* Derive the base directory from a file path. * E.g., "ppt/slides/slide1.xml" → "ppt/slides"
(filePath: string)
| 34 | * E.g., "ppt/slides/slide1.xml" → "ppt/slides" |
| 35 | */ |
| 36 | function basePath(filePath: string): string { |
| 37 | const idx = filePath.lastIndexOf('/') |
| 38 | return idx >= 0 ? filePath.substring(0, idx) : '' |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * For a given XML file path, find its corresponding .rels file path. |
no outgoing calls
no test coverage detected