(book: { id: string; title?: string | null }, ext: string)
| 51 | |
| 52 | /** Cover path inside the book dir, e.g. {title}.jpg. */ |
| 53 | export function buildBookRemoteCover(book: { id: string; title?: string | null }, ext: string): string { |
| 54 | return `${buildBookRemoteDir(book)}/${sanitizeBookTitleForFs(book.title)}.${ext}`; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Extract book.id from a folder name `{title}-{uuid}`. |
no test coverage detected