Documentation ¶ Index ¶ func DirCopy(srcDir, dstDir string, copyMode Mode) error type Mode Constants ¶ This section is empty. Variables ¶ This section is empty. 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 ¶ View all Source files copy.go Click to show internal directories. Click to hide internal directories.