MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Write

Method Write

agent/utils/files/file_op.go:1008–1013  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

1006}
1007
1008func (w *contextAwareWriter) Write(p []byte) (int, error) {
1009 if err := w.ctx.Err(); err != nil {
1010 return 0, err
1011 }
1012 return w.writer.Write(p)
1013}
1014
1015func isIgnoreFile(name string) bool {
1016 return strings.HasPrefix(name, "__MACOSX") || strings.HasSuffix(name, ".DS_Store") || strings.HasPrefix(name, "._")

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected