MCPcopy
hub / github.com/codedogQBY/ReadAny / buildBookFolderName

Function buildBookFolderName

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

Source from the content-addressed store, hash-verified

41
42/** Build just the folder name segment (no leading path), `{title}-{id}`. */
43export 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. */
48export function buildBookRemoteFile(book: { id: string; title?: string | null }, ext: string): string {

Callers 4

syncFilesFunction · 0.90
listDirMethod · 0.90
buildBookRemoteDirFunction · 0.85

Calls 1

sanitizeBookTitleForFsFunction · 0.85

Tested by

no test coverage detected