fsutil

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 17, 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 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