fileutil

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

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/astronomer/astro-cli/issues/103

func GetHomeDir

func GetHomeDir() (string, error)

GetHomeDir returns the home directory

func GetWorkingDir

func GetWorkingDir() (string, error)

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