fileutil

package
v4.0.0-0.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(source string, dest string) error

CopyDirectory copies the files under the source directory to dest directory. The dest directory is created if it does not exist. Copied from vendor/github.com/mrunalp/fileutils/fileutils.go

func CopyFile

func CopyFile(source string, dest string) error

CopyFile copies the file at source to dest Copied from vendor/github.com/mrunalp/fileutils/fileutils.go

func MkdirAllNewAs

func MkdirAllNewAs(path string, mode os.FileMode, ownerUID, ownerGID int) error

MkdirAllNewAs creates a directory (include any along the path) and then modifies ownership ONLY of newly created directories to the requested uid/gid. If the directories along the path exist, no change of ownership will be performed Copied from vendor/github.com/mrunalp/fileutils/idtools.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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