(book: { id: string; title?: string | null })
| 41 | |
| 42 | /** Build just the folder name segment (no leading path), `{title}-{id}`. */ |
| 43 | export function buildBookFolderName(book: { id: string; title?: string | null }): string { |
| 44 | return `${sanitizeBookTitleForFs(book.title)}-${book.id}`; |
| 45 | } |
| 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 { |
no test coverage detected