fsutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: MIT Imports: 6 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