fshelper

package module
v0.0.0-...-3e93bdb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDirMode  = 0755
	DefaultFileMode = 0644
)

Variables

View Source
var (
	ErrSkipFile          = errors.New("skip file")
	ErrSkipDir           = errors.New("skip dir")
	ErrIncompatibleFlags = errors.New("incompatible combination of flags")
)
View Source
var ErrNotSupported = errors.New("not supported")

Functions

func Chmod

func Chmod(flags FlagsChmod, mode os.FileMode, path string) error

func Copy

func Copy(flags FlagsCopy, src, dest string) error

Types

type FlagsChmod

type FlagsChmod uint
const (
	ChmodChanges FlagsChmod = 1 << iota
	ChmodVerbose
	ChmodRecursive
	ChmodOnlyDirs
	ChmodOnlyFiles
)

type FlagsCopy

type FlagsCopy uint
const (
	CopyContent FlagsCopy = 1 << iota
	CopyRecursive
	CopyPreserveMode
	CopyPreserveOwner
	CopyParents
	CopyVerbose
)

Jump to

Keyboard shortcuts

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