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

Function buildBookRemoteFile

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

Source from the content-addressed store, hash-verified

46
47/** File path inside the book dir, e.g. {title}.epub. */
48export 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. */
53export function buildBookRemoteCover(book: { id: string; title?: string | null }, ext: string): string {

Callers 4

syncFilesFunction · 0.90
migrateBookRemoteStateFunction · 0.90
downloadBookFileFunction · 0.90

Calls 2

buildBookRemoteDirFunction · 0.85
sanitizeBookTitleForFsFunction · 0.85

Tested by

no test coverage detected