util

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTmpDir

func CreateTmpDir(dir string) (string, error)

CreateTmpDir makes a directory named `dir` in the system temporary directory and returns the full path to the created directory

func EnsureDirectory

func EnsureDirectory(path string) error

EnsureDirectory creates the directory if it does not exist (fail if path exists and is not a directory)

func RemoveTmpDir

func RemoveTmpDir(dir string) error

RemoveTmpDir removes a directory (and everything underneath it)

Types

This section is empty.

Jump to

Keyboard shortcuts

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