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