Skip to content

Tankōbon / main/db/path-roots / fileRootsStore

Function: fileRootsStore() ​

fileRootsStore(filePath): RootsStore

Defined in: main/db/path-roots.ts:49

A JSON file of { "<folder id>": "<absolute path>" }, next to the database pointer in userData: unlike the database, it is not shared between machines. A missing or damaged file reads as empty (the folders then count as not found, and are relinked), it never stops the app from starting.

Parameters ​

filePath ​

string

Returns ​

RootsStore