copytree

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanRelativePath

func CleanRelativePath(rel string) (string, error)

func SafeJoin

func SafeJoin(rootAbs, rel string) (string, error)

Types

type File

type File struct {
	RelPath string
	Data    []byte
	Mode    os.FileMode
}

type Options

type Options struct {
	DryRun bool
	Force  bool
}

type Result

type Result struct {
	Files []string
}

func CopyFiles

func CopyFiles(root string, files []File, opts Options) (Result, error)

Jump to

Keyboard shortcuts

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