☰
Debian Codegraph
@
1.16.0-3
1.16.0-2
1.14.1-2
/
/
testscript
/
clonefile.go
☽
☼
testscript/clonefile.go
code
plain
raw
symbols
SCIP
BSD-3-clause
2018 The Go Authors; 2018-2025 Roger Peppe <
[email protected]
>
debian/copyright
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
}