fileutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

Exists returns a boolean indicating if the given path already exists

func FindDirInPath

func FindDirInPath(search string) (string, error)

FindDirInPath walks up the current directory looking for the .astro folder TODO Deprecate if remains unused, removed due to https://github.com/astronomerio/astro-cli/issues/103

func GetHomeDir

func GetHomeDir() string

GetHomeDir returns the home directory

func GetWorkingDir

func GetWorkingDir() string

GetWorkingDir returns the curent working directory

func IsEmptyDir added in v0.2.2

func IsEmptyDir(path string) bool

IsEmptyDir checks if path is an empty dir

func WriteStringToFile

func WriteStringToFile(path string, s string) error

WriteStringToFile write a string to a file

func WriteToFile

func WriteToFile(path string, r io.Reader) error

WriteToFile writes an io.Reader to a file if it does not exst

Types

This section is empty.

Jump to

Keyboard shortcuts

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