MCPcopy Create free account
hub / github.com/tailscale/tailcat / copyFile

Function copyFile

internal/wasmbuild/wasmbuild.go:122–128  ·  view source on GitHub ↗
(src, dst string)

Source from the content-addressed store, hash-verified

120}
121
122func copyFile(src, dst string) error {
123 b, err := os.ReadFile(src)
124 if err != nil {
125 return err
126 }
127 return os.WriteFile(dst, b, 0644)
128}
129
130// compressWasm writes path.zst and path.gz next to path.
131func compressWasm(path string) error {

Callers 1

DistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected