paths

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the directory for cloudstic configuration and state files. Resolution order:

  1. CLOUDSTIC_CONFIG_DIR environment variable (if set)
  2. os.UserConfigDir()/cloudstic (platform default)

The directory is created with 0700 permissions if it does not exist.

func TokenPath

func TokenPath(filename string) (string, error)

TokenPath returns the full path for a token file stored inside the config directory (e.g. "google_token.json" → "~/.config/cloudstic/google_token.json").

Types

This section is empty.

Jump to

Keyboard shortcuts

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