osutil

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cp

func Cp(from, to string) error

func Execv

func Execv(cmd string, args []string, env []string) error

func ExistsDir

func ExistsDir(dir string) bool

func ExistsFile

func ExistsFile(file string) bool

func GetMountsByRoot added in v0.2.3

func GetMountsByRoot(rootDir string) ([]*mount.Info, error)

func IsDirEmpty

func IsDirEmpty(dir string) (bool, error)

func Mknod

func Mknod(path string, mode uint32, dev int) error

Mknod unless path does not exists.

func RunCmd

func RunCmd(name string, arg ...string) error
func Symlink(oldname, newname string) error

Symlink, but ignore already exists file.

func UmountRoot added in v0.2.3

func UmountRoot(rootDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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