Function dirs_next::config_dir [−][src]
Expand description
Returns the path to the user’s config directory.
The returned value depends on the operating system and is either a Some
, containing a value from the following table, or a None
.
Platform | Value | Example |
---|---|---|
Linux | $XDG_CONFIG_HOME or $HOME /.config | /home/alice/.config |
macOS | $HOME /Library/Preferences | /Users/Alice/Library/Preferences |
Windows | {FOLDERID_RoamingAppData} | C:\Users\Alice\AppData\Roaming |