MCPcopy
hub / github.com/git-lfs/git-lfs / cloneFileSyscall

Function cloneFileSyscall

tools/util_darwin.go:108–118  ·  view source on GitHub ↗
(dst, src string)

Source from the content-addressed store, hash-verified

106}
107
108func cloneFileSyscall(dst, src string) *CloneFileError {
109 err := unix.Clonefileat(unix.AT_FDCWD, src, unix.AT_FDCWD, dst, unix.CLONE_NOFOLLOW)
110 if err != nil {
111 return &CloneFileError{
112 Unsupported: err == unix.ENOTSUP,
113 errorString: tr.Tr.Get("error cloning from %v to %v: %s", src, dst, err),
114 }
115 }
116
117 return nil
118}

Callers 1

CloneFileByPathFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected