fsutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultVegaDir

func DefaultVegaDir() string

DefaultVegaDir returns the location to vega config files and data files: binary is in /usr/bin/ -> look for /etc/vega/config.toml binary is in /usr/local/vega/bin/ -> look for /usr/local/vega/etc/config.toml binary is in /usr/local/bin/ -> look for /usr/local/etc/vega/config.toml otherwise, look for $HOME/.vega/config.toml

func EnsureDir

func EnsureDir(path string) error

EnsureDir will make sure a directory exists or is created at a given filesystem path.

func FileExists

func FileExists(path string) (bool, error)

FileExists similar to PathExists, but ensures the path is to a file, not a directory

func PathExists

func PathExists(path string) (bool, error)

PathExists returns whether a link exists at a given filesystem path.

Types

type PathNotFound

type PathNotFound struct {
	// contains filtered or unexported fields
}

PathNotFound represent an error when a fd cannot be found on the user filesystem

func (*PathNotFound) Error

func (err *PathNotFound) Error() string

Error return an human readable formating of the error

Jump to

Keyboard shortcuts

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