filesystem

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(sourceDir string, destinationDir string, overwrite bool, logger logging.Logger) (err error)

CopyDir recursively copies a directory.

func CopyFile

func CopyFile(sourcePath, destinationPath string, logger logging.Logger) (err error)

CopyFile copies a file from one path to another

func MaybeCreateDestinationDir

func MaybeCreateDestinationDir(path string, opts ...CreateOption) error

Types

type CreateOption

type CreateOption func(c *createOpts)

func ErrOnExists

func ErrOnExists() CreateOption

func WithFileMode

func WithFileMode(m fs.FileMode) CreateOption

Jump to

Keyboard shortcuts

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