Function: readTextFileIfExists()
function readTextFileIfExists(filePath: string): string | null;
Defined in: _internal/repository-text-files.ts:189
Reads a UTF-8 text file and returns null when the file cannot be read.
Results are cached to avoid repeated disk I/O for the same file path.
Parametersâ
filePathâ
string
Absolute path to the file to read
Returnsâ
string | null
File contents or null if file cannot be read