fileutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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

func GetHomeDir

func GetHomeDir() string

GetHomeDir returns the home directory

func GetWorkingDir

func GetWorkingDir() string

GetWorkingDir returns the curent working directory

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