MCPcopy Index your code
hub / github.com/codedogQBY/ReadAny / buildBookRemoteDir

Function buildBookRemoteDir

packages/core/src/sync/sync-naming.ts:38–40  ·  view source on GitHub ↗
(book: { id: string; title?: string | null })

Source from the content-addressed store, hash-verified

36
37/** Build the per-book remote directory: /readany/data/books/{title}-{id}. */
38export 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}`. */
43export function buildBookFolderName(book: { id: string; title?: string | null }): string {

Callers 4

syncFilesFunction · 0.90
buildBookRemoteFileFunction · 0.85
buildBookRemoteCoverFunction · 0.85

Calls 1

buildBookFolderNameFunction · 0.85

Tested by

no test coverage detected