Debian Codegraph @

testscript/clonefile.go

raw symbols SCIP
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 }