import "github.com/docker/docker/daemon/graphdriver/copy"
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.
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 )
Package copy imports 11 packages (graph) and is imported by 31 packages. Updated 2020-11-17. Refresh now. Tools for package owners.