MCPcopy Index your code
hub / github.com/gitify-app/gitify / openLogsDirectory

Function openLogsDirectory

src/main/utils.ts:48–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 * Logs an error if the log file path cannot be resolved.
47 */
48export function openLogsDirectory() {
49 const logFilePath = log.transports.file?.getFile()?.path;
50
51 if (!logFilePath) {
52 logError(
53 'openLogsDirectory',
54 'Could not find log directory!',
55 new Error('Directory not found'),
56 );
57 return;
58 }
59
60 const logDirectory = path.dirname(logFilePath);
61 shell.openPath(logDirectory);
62}

Callers 2

utils.test.tsFile · 0.90
buildMenuMethod · 0.90

Calls 1

logErrorFunction · 0.90

Tested by

no test coverage detected