paths

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(dir string, mode os.FileMode) error

CreateDir creates directory if it doesn't exist.

func Exists

func Exists(file string) bool

Exists returns true if the file exists.

func GetPaths

func GetPaths() (configFile string, dataDir string)

GetPaths gets config file and data directory paths.

func MakePaths

func MakePaths(configFile string, dataDir string) error

MakePaths creates the configuration file and directories if needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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