paths

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: ISC Imports: 7 Imported by: 0

Documentation

Overview

Package paths provides convenience functions related to the file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesPostbootExist added in v0.0.10

func DoesPostbootExist(path string) bool

DoesPostbootExist returns true if the postboot file exists, otherwise false.

func EnsureDirExists

func EnsureDirExists(path string)

EnsureDirExists creates the given directory if it does not exists.

func GetCmdPath added in v0.0.3

func GetCmdPath(cmd string) (string, error)

GetCmdPath returns the given executable from the PATH, otherwise an error.

func GetCmdPathOrExit added in v0.0.5

func GetCmdPathOrExit(cmd string) string

GetCmdPathOrExit returns the given executable from the PATH.

func GetDataFilePath

func GetDataFilePath(file string) string

GetDataFilePath returns a file from the XDG data directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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