Documentation ¶
Index ¶
- Variables
- func AttachCmd(cmd *exec.Cmd, stdout io.Writer, stderr io.Writer, stdin io.Reader) (*sync.WaitGroup, error)
- func BashCmd(cmdStr string) *exec.Cmd
- func BashCmdf(cmdStr string, args ...interface{}) *exec.Cmd
- func ExitStatus(err error) (uint32, error)
- func IsDirectory(path string) (bool, error)
- func IsRegularFile(path string) (bool, error)
- func OsPath(pathElements ...string) string
- func PathBaseName(path string) string
- func PathDirName(path string) string
- func PathExists(path string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PathSep = quotedPathSep[1 : len(quotedPathSep)-1]
)
Functions ¶
func ExitStatus ¶
func IsDirectory ¶
IsDirectory returns a boolean indicating if the provided path is a directory.
func IsRegularFile ¶
IsRegularFile returns a boolean indicating if the provided path is a regular file.
func PathBaseName ¶
PathBaseName takes a full path and returns the end-most path name - this is the base name! Counter-part of PathDirName.
func PathDirName ¶
PathDirName takes a full path and returns the parent-directory portion of it. Counter-part of PathBaseName.
func PathExists ¶
PathExists returns whether or not the referenced filesystem path exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.