package copy

import "github.com/docker/cli/components/engine/daemon/graphdriver/copy"

Index

Functions

func DirCopy

func DirCopy(srcDir, dstDir string, copyMode Mode, copyXattrs bool) error

DirCopy copies or hardlinks the contents of one directory to another, properly handling xattrs, and soft links

Copying xattrs can be opted out of by passing false for copyXattrs.

Types

type Mode

type Mode int

Mode indicates whether to use hardlink or copy content

const (
	// Content creates a new file, and copies the content of the file
	Content Mode = iota
	// Hardlink creates a new hardlink to the existing file
	Hardlink
)

Source Files

copy.go

Version
v17.12.1-ce-rc1+incompatible
Published
Feb 13, 2018
Platform
linux/amd64
Imports
12 packages
Last checked
1 hour ago

Tools for package owners.