fs

package
v0.260224.1130 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(path string) error

EnsureDir creates a directory if it doesn't exist

func ExpandConfigDir

func ExpandConfigDir(path string) (string, error)

ExpandConfigDir expands ~ to user home directory and returns absolute path

func GetUserCachePath

func GetUserCachePath(appName string) (string, error)

GetUserCachePath returns the platform-specific user cache directory This follows the conventions of each operating system: - Linux/Unix: ~/.cache - macOS: ~/Library/Caches - Windows: %LOCALAPPDATA%

func GetUserConfigPath

func GetUserConfigPath(appName string) (string, error)

GetUserConfigPath returns the platform-specific user config directory This follows the conventions of each operating system: - Linux/Unix: ~/.config - macOS: ~/Library/Application Support - Windows: %APPDATA%

func GetUserPath

func GetUserPath() (string, error)

GetUserPath returns the user's home directory path across all platforms It provides a consistent way to get the user directory regardless of the operating system

Types

This section is empty.

Jump to

Keyboard shortcuts

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