fsutil

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 5 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 Tempdir

func Tempdir() string

Tempdir returns a temporary directory suiteable for sensitive data. It tries /dev/shm but if this isn't working it will return an empty string. Using this with ioutil.Tempdir will ensure that we're getting the "best" tempdir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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