module

Egui::SystemPorts::UserDirs

Class methods

cache

User-specific non-essential cache: $XDG_CACHE_HOME (default ~/.cache) on Linux/BSD; ~/Library/Caches on macOS; %LOCALAPPDATA%\cache on Windows.

Source
config

User-specific configuration: $XDG_CONFIG_HOME (default ~/.config) on Linux/BSD; ~/Library/Application Support on macOS; %APPDATA% (roaming) on Windows.

Source
data

User-specific data: $XDG_DATA_HOME (default ~/.local/share) on Linux/BSD; ~/Library/Application Support on macOS; %LOCALAPPDATA% on Windows.

Source
documents
Source
downloads
Source
home

The user's home directory (fallback: the working directory).

Source
pictures
Source
user_dir(name : String) : String | Nil

A known/XDG user dir by its name ("DOCUMENTS", "DOWNLOADS", "PICTURES", …), or nil when not available. Linux/BSD resolves through xdg-user-dir; macOS maps to the fixed home subfolder (only when it exists); Windows through SHGetKnownFolderPath. Results are cached on Windows.

Source