MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / ExistFile

Method ExistFile

internal/utils/bfs/blocks_file.go:232–239  ·  view source on GitHub ↗
(fileHash string)

Source from the content-addressed store, hash-verified

230}
231
232func (this *BlocksFile) ExistFile(fileHash string) bool {
233 err := CheckHashErr(fileHash)
234 if err != nil {
235 return false
236 }
237
238 return this.mFile.ExistFile(fileHash)
239}
240
241func (this *BlocksFile) RemoveFile(fileHash string) error {
242 err := CheckHashErr(fileHash)

Callers

nothing calls this directly

Calls 1

CheckHashErrFunction · 0.85

Tested by

no test coverage detected