...

Source file src/github.com/rogpeppe/go-internal/testscript/clonefile.go

Documentation: github.com/rogpeppe/go-internal/testscript

     1  //go:build unix && !darwin
     2  
     3  package testscript
     4  
     5  import "os"
     6  
     7  // cloneFile makes a clone of a file via a hard link.
     8  func cloneFile(from, to string) error {
     9  	return os.Link(from, to)
    10  }
    11  

View as plain text