utils

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(path string) (string, error)

ResolvePath resolves the path to an absolute path, handling `~`, `..`, `.` expansion

func SafeStat

func SafeStat(path string, follow bool, visited map[string]struct{}) (os.FileInfo, error)

SafeStat is a helper function that gets file info for a given path, handling symlinks and loops.

Types

This section is empty.

Jump to

Keyboard shortcuts

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