Tankōbon / main/db/path-roots / PathCodec
Interface: PathCodec
Defined in: main/db/path-roots.ts:12
Converts a file path between what the database stores and the absolute path on this machine.
Methods
decode()
decode(
stored):string
Defined in: main/db/path-roots.ts:16
The absolute path, on this machine, of a stored path.
Parameters
stored
string
Returns
string
encode()
encode(
filePath):string
Defined in: main/db/path-roots.ts:14
The form to store (and compare in SQL) for the absolute path filePath.
Parameters
filePath
string
Returns
string