standardpaths

Functions for retrieving standard paths in cross-platform manner.

Public Imports

xdgpaths
public import xdgpaths;
Undocumented in source.

Members

Enums

StandardPath
enum StandardPath

Locations that can be passed to writablePath and standardPaths functions.

Functions

binPaths
auto binPaths()

System paths where executable files can be found.

findExecutable
string findExecutable(string fileName, Range paths)

Finds executable by fileName in the paths specified by paths.

findExecutable
string findExecutable(string fileName)

ditto, but searches in system paths, determined by PATH environment variable.

fsPath
string fsPath(short domain, OSType type)
Undocumented in source. Be warned that the author may not have intended to support it.
homeDir
string homeDir()

Current user home directory.

isCarbonLoaded
bool isCarbonLoaded()
Undocumented in source. Be warned that the author may not have intended to support it.
roamingPath
string roamingPath()

Path to Roaming data directory.

roamingPath
string roamingPath()
Undocumented in source. Be warned that the author may not have intended to support it.
runtimeDir
deprecated string runtimeDir()

Path to runtime user directory on freedesktop platforms.

runtimeDir
deprecated string runtimeDir()
Undocumented in source. Be warned that the author may not have intended to support it.
savedGames
string savedGames()

Location where games may store their saves. This is common path for games. One should use subfolder for their game saves.

savedGames
string savedGames()
Undocumented in source. Be warned that the author may not have intended to support it.
standardPaths
string[] standardPaths(StandardPath type)

Getting paths for various locations.

standardPaths
string[] standardPaths(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
standardPaths
string[] standardPaths(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
standardPaths
string[] standardPaths(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
writablePath
string writablePath(StandardPath type)

Getting writable paths for various locations.

writablePath
string writablePath(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
writablePath
string writablePath(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.
writablePath
string writablePath(StandardPath type)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

noErr
enum noErr;
Undocumented in source.

Meta