Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + var ErrEmptyPath = errors.New("fsutils: path must not be empty") + func CleanPath(dir string) (string, error) + func CopyFile(srcPath, dstPath string, perm fs.FileMode) error + func ExpandAndCleanPath(targetPath, baseDir, homeDir string) string + func HasDanglingSymlinkUnder(targetPath, baseDir string) bool + func IsConfinedInsideDir(targetPath, baseDir string) bool + func IsInsideDir(targetPath, dir string) bool + func LinkOrCopy(srcPath, dstPath string, perm fs.FileMode) error + func PortablePath(targetPath, rootDir, homeDir string) string + func ResolveConfigPath(targetPath, baseDir string) string + func ResolveDeepestExisting(p string) string + func WriteFileAtomic(dstPath string, data []byte, perm fs.FileMode) error + func WriteFileAtomicInRoot(root *os.Root, name string, data []byte, perm fs.FileMode) error + type Glob struct + func Compile(pattern string) (*Glob, error) + func (g *Glob) Match(text string) bool