pathutil

package
v0.0.0-...-f01fd73 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsPath

func AbsPath(pth string) (string, error)

AbsPath expands ENV vars and the ~ character

then call Go's Abs

func CurrentWorkingDirectoryAbsolutePath

func CurrentWorkingDirectoryAbsolutePath() (string, error)

CurrentWorkingDirectoryAbsolutePath ...

func EnsureDirExist

func EnsureDirExist(dir string) error

EnsureDirExist ...

func IsDirExists

func IsDirExists(pth string) (bool, error)

IsDirExists ...

func IsPathExists

func IsPathExists(pth string) (bool, error)

IsPathExists ...

func IsRelativePath

func IsRelativePath(pth string) bool

IsRelativePath ...

func NormalizedOSTempDirPath

func NormalizedOSTempDirPath(tmpDirNamePrefix string) (retPth string, err error)

NormalizedOSTempDirPath ... Returns a temp dir path. If tmpDirNamePrefix is provided it'll be used

as the tmp dir's name prefix.

Normalized: it's guaranteed that the path won't end with '/'.

func UserHomeDir

func UserHomeDir() string

UserHomeDir ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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