scoop:scoop.platform:0.1.0
scoop.platform.env
API
-
function
arguments
Returns a snapshot of process arguments as operating-system byte strings, including the program argument.
-
function
currentDirectory
Queries the actual current working directory, without consulting PWD.
-
function
environment
Returns an immutable snapshot with the original spelling of environment names. Map key equality remains OsString equality, including on Windows.
-
function
environmentVariable
Returns an independent value snapshot, distinguishing absence from an empty string. Names and values retain the operating system's native encoding.
-
function
executablePath
Returns the actual absolute path of the process executable, independent of argv and cwd.
-
function
homeDirectory
Queries the user's home directory. Windows prefers USERPROFILE then the process user's profile; iOS uses its application container. Other POSIX targets prefer HOME then the current uid's passwd record.
-
function
temporaryDirectory
Returns an independent copy of the system's temporary directory path. The query does not guarantee that the directory exists or is writable.