Skip to content

Store

Defined in: ../src/place.ts:43

A tree of folders and files: Drive, or a folder on disk. Folder and File are whatever the storage uses (a Drive folder, a path); Pdf is the bytes as it holds them.

Folder

File

Pdf

child(folder, name): Folder

Defined in: ../src/place.ts:47

The folder of that name inside, made if missing.

Folder

string

Folder


copy(file, to, name): void

Defined in: ../src/place.ts:56

File

Folder

string

void


create(folder, name, pdf): string

Defined in: ../src/place.ts:53

A new file; returns its ID or path.

Folder

string

Pdf

string


file(folder, name): File | null

Defined in: ../src/place.ts:49

The file of that name inside, if there is one.

Folder

string

File | null


folder(id): Folder

Defined in: ../src/place.ts:45

A folder by its ID (Drive) or path (disk).

string

Folder


idOf(file): string

Defined in: ../src/place.ts:51

A file’s ID (Drive) or path (disk).

File

string


replace(file, pdf): string

Defined in: ../src/place.ts:55

New contents for an existing file, which keeps its ID or path; returns it.

File

Pdf

string