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

Method RemoveAll

internal/utils/bfs/meta_file.go:377–380  ·  view source on GitHub ↗

RemoveAll 删除所有数据

()

Source from the content-addressed store, hash-verified

375
376// RemoveAll 删除所有数据
377func (this *MetaFile) RemoveAll() error {
378 _ = this.fp.Close()
379 return os.Remove(this.fp.Name())
380}

Callers 8

TestNewFileWriterFunction · 0.45
TestMetaFile_RemoveAllFunction · 0.45
TestBlocksFile_RemoveAllFunction · 0.45
RemoveStoreFunction · 0.45
cleanDeletedDirsMethod · 0.45
mainFunction · 0.45

Calls 3

CloseMethod · 0.65
RemoveMethod · 0.65
NameMethod · 0.65

Tested by 5

TestNewFileWriterFunction · 0.36
TestMetaFile_RemoveAllFunction · 0.36
TestBlocksFile_RemoveAllFunction · 0.36