github.com/ashokponkumar/storage@v1.12.13/drivers/copy/copy_unsupported.go (about)

     1  // +build !linux !cgo
     2  
     3  package copy
     4  
     5  import "github.com/containers/storage/pkg/chrootarchive"
     6  
     7  // Mode indicates whether to use hardlink or copy content
     8  type Mode int
     9  
    10  const (
    11  	// Content creates a new file, and copies the content of the file
    12  	Content Mode = iota
    13  )
    14  
    15  // DirCopy copies or hardlinks the contents of one directory to another,
    16  // properly handling soft links
    17  func DirCopy(srcDir, dstDir string, _ Mode, _ bool) error {
    18  	return chrootarchive.NewArchiver(nil).CopyWithTar(srcDir, dstDir)
    19  }