MCPcopy Create free account
hub / github.com/dropbox/dbxcli / stdinSpoolFailureError

Function stdinSpoolFailureError

cmd/stdin.go:40–48  ·  view source on GitHub ↗
(tmpPath string, cause error, cleanupErr error)

Source from the content-addressed store, hash-verified

38}
39
40func stdinSpoolFailureError(tmpPath string, cause error, cleanupErr error) error {
41 if cleanupErr == nil {
42 return cause
43 }
44 return errors.Join(
45 cause,
46 fmt.Errorf("failed to remove temp file %s after stdin spool failure; sensitive stdin data may remain on disk: %w", tmpPath, cleanupErr),
47 )
48}

Callers 1

spoolStdinToTempFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected