fileutils

package
v6.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFilePaths

func CopyFilePaths(fromPath, toPath string) (err error)

func CopyPathToWriter

func CopyPathToWriter(originalFilePath string, targetWriter io.Writer) (err error)

func CopyReaderToPath

func CopyReaderToPath(src io.Reader, targetPath string) (err error)

func CreateFile

func CreateFile(path string) (file *os.File, err error)

func IsDirEmpty

func IsDirEmpty(dir string) (isEmpty bool, err error)

func OpenFile

func OpenFile(path string) (file *os.File, err error)

func ReadFile

func ReadFile(file *os.File) string

func SetExecutableBits

func SetExecutableBits(dest string, fileInfoToCopy os.FileInfo) (err error)

func SetExecutableBitsWithPaths

func SetExecutableBitsWithPaths(dest string, src string) (err error)

func SetTmpPathPrefix

func SetTmpPathPrefix(path string)

func TempDir

func TempDir(namePrefix string, cb func(tmpDir string, err error))

func TempFile

func TempFile(namePrefix string, cb func(tmpFile *os.File, err error))

func TmpPathPrefix

func TmpPathPrefix() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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