paths

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TauPath directory where all processing is done
	TauPath = ".tau"

	// ModulePath is directory where modules are downloaded
	ModulePath = "module"

	// DependencyPath directory where to process dependencies
	DependencyPath = "dep"
)

Variables

View Source
var (
	// WorkingDir is directory where user is running command from
	WorkingDir string
)

Functions

func Abs

func Abs(pwd, path string) string

Abs returns the absolute path for file, based on

func DependencyDir

func DependencyDir(tempDir, name string) string

DependencyDir creates and return the directory for dependencies.

func EnsureDirectoryExists

func EnsureDirectoryExists(path string)

EnsureDirectoryExists makes sure the entire path exists, all parent folders too.

func IsDir

func IsDir(path string) bool

IsDir returns true if path is a directory, will fail otherwise

func IsFile

func IsFile(path string) bool

IsFile will return true if path is a file

func ModuleDir

func ModuleDir(tempDir, name string) string

ModuleDir returns the directory where modules should be stored. It will not create the directory as that has to be done by go-getter that is using this directory.

func Remove

func Remove(path string)

Remove the directory and all its subdirectories

func TempDir

func TempDir(pwd, src string) string

TempDir generates a temporary directory for src using pwd as base directory. If no src directory is set it will randomly generate a new temp directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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