☰
Debian Codegraph
@
1.16.0-3
1.16.0-2
1.14.1-2
/
/
testscript
/
clonefile_darwin.go
☽
☼
testscript/clonefile_darwin.go
code
plain
raw
symbols
SCIP
BSD-3-clause
2018 The Go Authors; 2018-2025 Roger Peppe <
[email protected]
>
debian/copyright
1
package
testscript
2
3
import
"golang.org/x/sys/unix"
4
5
// cloneFile makes a clone of a file via MacOS's `clonefile` syscall.
6
func
cloneFile(from, to
string
)
error
{
7
return
unix.
Clonefile
(from, to,
0
)
8
}