The OpenD Programming Language

xdgConfigHome

The base directory relative to which user-specific configuration files should be stored.

version(D_Ddoc)
@trusted nothrow
string
xdgConfigHome
(
string subfolder = null
,
bool shouldCreate = false
)

Parameters

subfolder string

Subfolder to append to determined path.

shouldCreate bool

If path does not exist, create directory using 700 permissions (i.e. allow access only for current user).

Return Value

Type: string

Path to user-specific configuration directory or empty string on error.

See Also

Meta