fsutil

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanPath

func CleanPath(path string) string

CleanPath resolves common aliases in a path and cleans it as much as possible

func IsEmptyDir added in v1.1.0

func IsEmptyDir(path string) (bool, error)

IsEmptyDir checks if a certain path is an empty directory

func IsFile

func IsFile(path string) bool

IsFile checks if a certain path is actually a file

func Shred added in v1.2.0

func Shred(path string, runs int) error

Shred overwrite the given file any number of times

Types

type TempFiler added in v1.2.0

type TempFiler interface {
	io.WriteCloser
	Name() string
	Remove() error
}

TempFiler is a tempfile interface

func TempFile added in v1.2.0

func TempFile(prefix string) (TempFiler, error)

TempFile returns a new tempfile wrapper

Jump to

Keyboard shortcuts

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