osutil

package
v0.0.0-...-684e4f6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyRecursively

func CopyRecursively(srcPath, dstPath string) error

CopyRecursively copies a given directory to the destination. Creates the directory if the destination doesn't exist.

func CreateDirs

func CreateDirs(dirPaths ...string) error

CreateDirs creates directories from the given directory path arguments.

func DirExists

func DirExists(path string) (bool, error)

DirExists checks whether the given path exists and belongs to a directory.

func FileExists

func FileExists(path string) (bool, error)

FileExists checks whether the given path exists and belongs to a file.

func GetUserHomeDir

func GetUserHomeDir() (string, error)

GetUserHomeDir returns the home directory of the user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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