package copy

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

Index

Functions

func DirCopy

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

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

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.11.0-ce-rc3+incompatible
Published
Nov 8, 2017
Platform
linux/amd64
Imports
11 packages
Last checked
1 hour ago

Tools for package owners.