fileutils

package
v6.12.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyPathToPath

func CopyPathToPath(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 Create

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

func IsDirEmpty

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

func Open

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

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 TempPath

func TempPath(namePrefix string) string

TempPath generates a random file path in tmp, but does NOT create the actual directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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