fileutils

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2014 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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