fn create_config_file()

in proxy_agent/src/common/config.rs [267:299]


    fn create_config_file(file_path: PathBuf) -> Config {
        let data = if cfg!(not(windows)) {
            r#"{
            "logFolder": "C:\\logFolderName",
            "eventFolder": "C:\\eventFolderName",
            "latchKeyFolder": "C:\\latchKeyFolderName",
            "monitorIntervalInSeconds": 60,
            "pollKeyStatusIntervalInSeconds": 15,
            "wireServerSupport": 2,
            "hostGAPluginSupport": 1,
            "imdsSupport": 1,
            "ebpfProgramName": "ebpfProgramName"
        }"#
        } else {
            r#"{
            "logFolder": "%SYSTEMDRIVE%\\logFolderName",
            "eventFolder": "%SYSTEMDRIVE%\\eventFolderName",
            "latchKeyFolder": "%SYSTEMDRIVE%\\latchKeyFolderName",
            "monitorIntervalInSeconds": 60,
            "pollKeyStatusIntervalInSeconds": 15,
            "wireServerSupport": 2,
            "hostGAPluginSupport": 1,
            "imdsSupport": 1,
            "ebpfProgramName": "ebpfProgramName"
        }"#
        };

        File::create(&file_path)
            .unwrap()
            .write_all(data.as_bytes())
            .unwrap();
        Config::from_json_file(file_path)
    }