appdirs

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package appdirs resolves dbterm's per-user configuration, state, and log directories on every supported operating system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns dbterm's per-user configuration directory.

DBTERM_CONFIG_DIR takes precedence when set. Without an override, the path follows the host OS convention. If the native directory does not yet exist and the legacy ~/.config/dbterm directory does, dbterm keeps using that existing directory in place. It never auto-moves, merges, or overwrites a profile merely because HOME/XDG environment values changed for one process.

func IsOwnedDirectory

func IsOwnedDirectory(dir string) (bool, error)

IsOwnedDirectory reports whether dir has the exact marker dbterm writes when it creates a DBTERM_* override directory. Native OS directories do not need this marker; it exists solely to put a hard ownership boundary around purge of arbitrary environment-provided paths.

func LogDir

func LogDir() (string, error)

LogDir returns dbterm's per-user log directory.

func StateDir

func StateDir() (string, error)

StateDir returns dbterm's per-user mutable state directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL