MCPcopy
hub / github.com/bitfield/script / SHA256Sums

Method SHA256Sums

script.go:887–889  ·  view source on GitHub ↗

SHA256Sums reads paths from the pipe, one per line, and produces the hex-encoded SHA-256 hash of each corresponding file, one per line. Any files that cannot be opened or read will be ignored. Deprecated: SHA256Sums has been deprecated by [Pipe.HashSums]. To get the SHA-256 hash for each file path

()

Source from the content-addressed store, hash-verified

885// Deprecated: SHA256Sums has been deprecated by [Pipe.HashSums]. To get the SHA-256
886// hash for each file path in the pipe, call `HashSums(sha256.new())`
887func (p *Pipe) SHA256Sums() *Pipe {
888 return p.HashSums(sha256.New())
889}
890
891// Slice returns the pipe's contents as a slice of strings, one element per
892// line, or an error.

Calls 1

HashSumsMethod · 0.95