fs

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryDigest

func DirectoryDigest(path string) (string, error)

DirectoryDigest returns a sha 256 digest of all files in a directory

func EnsureDir

func EnsureDir(path string) error

EnsureDir ensures a directory exists

func HomeDir

func HomeDir() (string, error)

HomeDir return the users home directory

func PathExists

func PathExists(path string) bool

PathExists returns true if a directory path exists

func ReadFiles added in v0.3.0

func ReadFiles(dirOrFilePath string) ([]string, error)

ReadFiles reads all files in a directory and return them as a string array

func TempDir

func TempDir() (string, error)

TempDir return a temp dir

func UnmarshalYaml added in v0.3.0

func UnmarshalYaml(path string) (map[string]interface{}, error)

UnmarshalYaml reads a path and tries to unmarshal it to yaml

Types

This section is empty.

Jump to

Keyboard shortcuts

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