Skip to content

Tankōbon / main/db/db-location / checkDirectoryUsable

Function: checkDirectoryUsable() ​

checkDirectoryUsable(directory): string | null

Defined in: main/db/db-location.ts:63

Fails early (with a user-facing message in the interface language) on a directory the app couldn't open a database in — otherwise the problem would only surface as a crash on the next start.

Parameters ​

directory ​

string

Returns ​

string | null