(filePath: string)
| 52 | } |
| 53 | |
| 54 | getStoragePathForFile(filePath: string): string { |
| 55 | let safeFileName = this.fileMapping.get(filePath); |
| 56 | |
| 57 | if (!safeFileName) { |
| 58 | safeFileName = FilePathUtils.toSafeFileName(filePath); |
| 59 | this.fileMapping.set(filePath, safeFileName); |
| 60 | this.save().catch(console.error); |
| 61 | } |
| 62 | |
| 63 | return `${FilePathUtils.getHighlightsDir(this.vaultPath)}/${safeFileName}`; |
| 64 | } |
| 65 | |
| 66 | private getMappingPath(): string { |
| 67 | return `${FilePathUtils.getMetadataDir(this.vaultPath)}/file-mapping.json`; |
nothing calls this directly
no test coverage detected