ae.sys.paths

OS-specific paths.

getConfigDir - roaming, for configuration getDataDir - roaming, for user data getCacheDir - local

Members

Aliases

getCacheDir
alias getCacheDir = getLocalAppProfile
Undocumented in source.
getCacheDir
alias getCacheDir = getXdgAppDir!xdgCache
Undocumented in source.
getConfigDir
alias getConfigDir = getRoamingAppProfile
Undocumented in source.
getConfigDir
alias getConfigDir = getXdgAppDir!xdgConfig
Undocumented in source.
getConfigDirs
alias getConfigDirs = bindArgs!(getAppDir, CSIDL_LOCAL_APPDATA)
Undocumented in source.
getConfigDirs
alias getConfigDirs = getXdgAppDirs!xdgConfig
Undocumented in source.
getDataDir
alias getDataDir = getRoamingAppProfile
Undocumented in source.
getDataDir
alias getDataDir = getXdgAppDir!xdgData
Undocumented in source.
getDataDirs
alias getDataDirs = bindArgs!(getAppDir, CSIDL_LOCAL_APPDATA)
Undocumented in source.
getDataDirs
alias getDataDirs = getXdgAppDirs!xdgData
Undocumented in source.
getLocalAppProfile
alias getLocalAppProfile = bindArgs!(getAppDir, CSIDL_LOCAL_APPDATA)
Undocumented in source.
getRoamingAppProfile
alias getRoamingAppProfile = bindArgs!(getAppDir, CSIDL_APPDATA)
Undocumented in source.
toLower
alias toLower = std.ascii.toLower
Undocumented in source.

Functions

getAppDir
string getAppDir(int csidl, string appName)
Undocumented in source. Be warned that the author may not have intended to support it.
getAppDirs
string[] getAppDirs(int csidl, string appName)
Undocumented in source. Be warned that the author may not have intended to support it.
getExecutableName
string getExecutableName()

Get the base name of the current executable.

getXdgAppDir
string getXdgAppDir(string appName)
Undocumented in source. Be warned that the author may not have intended to support it.
getXdgAppDirs
string[] getXdgAppDirs(string appName)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

XdgDir
struct XdgDir
Undocumented in source.

Templates

bindArgs
template bindArgs(alias fun, CTArgs...)
Undocumented in source.

Variables

xdgCache
XdgDir xdgCache;
Undocumented in source.
xdgConfig
XdgDir xdgConfig;
Undocumented in source.
xdgData
XdgDir xdgData;
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>

References: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html