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

Method RemoveFile

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

Source from the content-addressed store, hash-verified

239}
240
241func (this *BlocksFile) RemoveFile(fileHash string) error {
242 err := CheckHashErr(fileHash)
243 if err != nil {
244 return err
245 }
246
247 return this.mFile.RemoveFile(fileHash)
248}
249
250func (this *BlocksFile) Sync() error {
251 this.mu.Lock()

Callers

nothing calls this directly

Calls 1

CheckHashErrFunction · 0.85

Tested by

no test coverage detected