Module standardpaths

Functions for retrieving standard paths in cross-platform manner.

Functions

NameDescription
homeDir() Current user home directory.
roamingPath(params) Path to Roaming data directory. Windows only.
roamingPath(params) Path to Roaming data directory. Windows only.
savedGames(params) Location where games may store their saves. Windows only.
savedGames(params) Location where games may store their saves. Windows only.
standardPaths(type) Get paths for various locations.
standardPaths(type, subfolder) Evaluate paths for various locations and append subfolder.
writablePath(type, params) Get writable path for specific location.
writablePath(type, subfolder, params) Evaluate writable path for specific location and append subfolder. This can be used with StandardPath.config and StandardPath.data to retrieve folder specific for this application instead of generic path.

Enums

NameDescription
FolderFlag Control behavior of functions.
StandardPath Location types that can be passed to writablePath and standardPaths functions.