standardpaths

Functions for retrieving standard paths in cross-platform manner.

Public Imports

xdgpaths
public import xdgpaths;
Undocumented in source.

Members

Enums

FolderFlag
enum FolderFlag

Control behavior of functions.

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.

homeDir
string homeDir()

Current user home directory.

roamingPath
string roamingPath(bool shouldCreate)

Path to Roaming data directory.

roamingPath
string roamingPath(FolderFlag params)
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.

savedGames
string savedGames(bool shouldCreate)

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

savedGames
string savedGames(FolderFlag params)
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, FolderFlag params)

Getting writable paths for various locations.

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

Meta