Environment

Exposes the system Environment settings, along with some handy utilities

Members

Aliases

directory
alias directory = cwd
Undocumented in source.

Static functions

cwd
void cwd(const(char)[] path)

Set the current working directory

cwd
char[] cwd()

Get the current working directory

cwd
void cwd(const(char)[] path)

Set the current working directory

cwd
char[] cwd()

Get the current working directory

exePath
FilePath exePath(char[] file)

Returns the full path location of the provided executable file, rifling through the PATH as necessary.

get
char[] get(const(char)[] variable, char[] def)

Returns the provided 'def' value if the variable does not exist

get
char[][char[]] get()

Get all set environment variables as an associative array.

get
char[] get(const(char)[] variable, char[] def)

Returns the provided 'def' value if the variable does not exist

get
char[][char[]] get()

Get all set environment variables as an associative array.

set
void set(const(char)[] variable, const(char)[] value)

clears the variable if value is null or empty

set
void set(const(char)[] variable, const(char)[] value)

clears the variable, if value is null or empty

toAbsolute
char[] toAbsolute(char[] path)

Returns an absolute version of the provided path, where cwd is used as the prefix.

Meta