Skip to main content

Module paths

Module paths 

Source
Expand description

XDG-compliant path resolution for opencode-cloud

Provides consistent path resolution across platforms:

  • Linux/macOS: ~/.config/opencode-cloud/ and ~/.local/share/opencode-cloud/
  • Windows: %APPDATA%\opencode-cloud\ and %LOCALAPPDATA%\opencode-cloud\

Functionsยง

get_config_dir
Get the configuration directory path
get_config_path
Get the full path to the config file
get_data_dir
Get the data directory path
get_hosts_path
Get the full path to the hosts configuration file
get_pid_path
Get the full path to the PID lock file