Skip to main content

get_data_dir

Function get_data_dir 

Source
pub fn get_data_dir() -> Option<PathBuf>
Expand description

Get the data directory path

Returns the directory where runtime data (PID file, logs, etc.) should be stored:

  • Linux: ~/.local/share/opencode-cloud/
  • macOS: ~/.local/share/opencode-cloud/ (XDG-style, not ~/Library)
  • Windows: %LOCALAPPDATA%\opencode-cloud\