path

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDir

func ChangeDir(path string) (string, error)

ChangeDir executes a chdir into path returning the old current working directory.

func CreatePath

func CreatePath(name string) (string, error)

CreatePath creates a local directory. If name is the destination name, it creates the directory inside the current path. Otherwise, it expects a complete path.

If the directory already exists, it does not return an error.

func FindPath

func FindPath(p string) bool

FindPath checks if p is a valid local path.

func IsExecutable

func IsExecutable(path string) bool

IsExecutable checks if the given path is a file and has the executable permission.

func SetExecutablePath added in v0.6.1

func SetExecutablePath(path string) error

SetExecutablePath sets the path as executable.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳