(book: { id: string; title?: string | null })
| 36 | |
| 37 | /** Build the per-book remote directory: /readany/data/books/{title}-{id}. */ |
| 38 | export function buildBookRemoteDir(book: { id: string; title?: string | null }): string { |
| 39 | return `${REMOTE_BOOKS_ROOT}/${buildBookFolderName(book)}`; |
| 40 | } |
| 41 | |
| 42 | /** Build just the folder name segment (no leading path), `{title}-{id}`. */ |
| 43 | export function buildBookFolderName(book: { id: string; title?: string | null }): string { |
no test coverage detected