(book: { id: string; title?: string | null }, ext: string)
| 46 | |
| 47 | /** File path inside the book dir, e.g. {title}.epub. */ |
| 48 | export function buildBookRemoteFile(book: { id: string; title?: string | null }, ext: string): string { |
| 49 | return `${buildBookRemoteDir(book)}/${sanitizeBookTitleForFs(book.title)}.${ext}`; |
| 50 | } |
| 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 { |
no test coverage detected