AppDirs¶
Constructors¶
create¶
An AppDirs instance derives the platform specific directories from the process environment variables. It will return appdirs for the user of the current process.
Creating appdirs requires: - passing environment variables, only on unix and osx systems. - a name of the app you want to get directories for - optionally: a name of the app author (be it a company or a person) - optionally: a version of your app, if you want to separate directories also by version
new ref create(
env_vars: (Array[String val] box | None val),
app_name: String val,
app_author: (String val | None val) = reference,
app_version: (String val | None val) = reference,
roaming: Bool val = false,
osx_as_unix: Bool val = false)
: AppDirs ref^
Parameters¶
- env_vars: (Array[String val] box | None val)
- app_name: String val
- app_author: (String val | None val) = reference
- app_version: (String val | None val) = reference
- roaming: Bool val = false
- osx_as_unix: Bool val = false
Returns¶
- AppDirs ref^
Public Functions¶
user_home_dir¶
Returns¶
- String val ?
user_data_dir¶
Returns the full path to the user-specific data dir for this application.
Returns¶
- String val ?
site_data_dirs¶
Returns an array of full paths to the user-shared data dirs for this application.
Returns¶
user_config_dir¶
Return full path to the user-specific config dir for this application.
Returns¶
- String val ?
site_config_dirs¶
Return full path to the user-shared config dirs for this application.
Returns¶
user_cache_dir¶
Return full path to the user-specific cache dir for this application.
Returns¶
- String val ?
user_state_dir¶
Return full path to the user-specific state dir for this application.
See https://wiki.debian.org/XDGBaseDirectorySpecification#state
Returns¶
- String val ?
user_log_dir¶
Return full path to the user-specific log dir for this application.
Returns¶
- String val ?