• 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.

    Returns string

    Path to the statistics directory

    function ensureStatisticsDir() {
    const statsDir = join(app.getPath("userData"), "data", "statistics");
    ensureDirSync(statsDir);
    return statsDir;
    }