Not Exported
Ensures the statistics storage directory exists
Creates the required directory structure for storing statistics data if it doesn't already exist. Uses the application's user data path to determine the appropriate location following platform conventions.
Path to the statistics directory
function ensureStatisticsDir() { const statsDir = join(app.getPath("userData"), "data", "statistics"); ensureDirSync(statsDir); return statsDir;} Copy
function ensureStatisticsDir() { const statsDir = join(app.getPath("userData"), "data", "statistics"); ensureDirSync(statsDir); return statsDir;}
Ensures the statistics storage directory exists
Creates the required directory structure for storing statistics data if it doesn't already exist. Uses the application's user data path to determine the appropriate location following platform conventions.