fs

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2013 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(source, target string) (success bool, err error)

func CopyFile

func CopyFile(source, target string) (success bool, err error)

func CreateDirectory

func CreateDirectory(path string) bool

func CreateFile

func CreateFile(filePath string) (success bool, err error)

func DirectoriesAreEqual

func DirectoriesAreEqual(source, target string) (directoriesAreEqual bool, filesThatAreDifferent []string, err error)

func DirectoryExists

func DirectoryExists(path string) bool

func FileExists

func FileExists(path string) bool

func FilesAreEqual

func FilesAreEqual(source, target string) (bool, error)

func GetAllFilesRecursively

func GetAllFilesRecursively(path string) []string

func GetFileHash

func GetFileHash(file string) (string, error)

func GetLines

func GetLines(inFile io.Reader) []string

Get all lines of a given file

func GetMatchingDirectoryEntries

func GetMatchingDirectoryEntries(path string, pattern *regexp.Regexp) []string

func GetUserHomeDirectory

func GetUserHomeDirectory() (string, error)

func IsDirectory

func IsDirectory(path string) bool

func IsFile

func IsFile(path string) bool

func PathExists

func PathExists(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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