file

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirectory added in v0.3.0

func EnsureDirectory(dirPath string) (bool, error)

EnsureDirectory checks if the dirPath directory exists. If not, it creates it.

func Exists

func Exists(filename string) (bool, error)

Exists returns a bool indicating if the specified file exists or not. It returns any errors that are encountered that are NOT an os.ErrNotExist error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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