MCPcopy Create free account
hub / github.com/PowerShell/DSC / get_settings_policy_file_path

Function get_settings_policy_file_path

lib/dsc-lib/src/util.rs:202–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200
201#[cfg(target_os = "windows")]
202fn get_settings_policy_file_path() -> String
203{
204 // $env:ProgramData+"\dsc\dsc.settings.json"
205 // This location is writable only by admins, but readable by all users
206 let Ok(local_program_data_path) = std::env::var("ProgramData") else { return String::new(); };
207 Path::new(&local_program_data_path).join("dsc").join("dsc.settings.json").display().to_string()
208}
209
210#[cfg(not(target_os = "windows"))]
211fn get_settings_policy_file_path() -> String

Callers 1

get_settingFunction · 0.85

Calls 1

newFunction · 0.50

Tested by

no test coverage detected