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

Method RemoveFile

internal/utils/bfs/fs.go:131–141  ·  view source on GitHub ↗
(hash string)

Source from the content-addressed store, hash-verified

129}
130
131func (this *FS) RemoveFile(hash string) error {
132 if this.isClosed {
133 return errors.New("the fs closed")
134 }
135
136 bFile, err := this.openBFileForHashWriting(hash)
137 if err != nil {
138 return err
139 }
140 return bFile.RemoveFile(hash)
141}
142
143func (this *FS) Close() error {
144 if this.isClosed {

Callers 3

DiscardMethod · 0.45
TestFS_RemoveFileFunction · 0.45
TestMetaFile_RemoveFileFunction · 0.45

Calls 1

Tested by 2

TestFS_RemoveFileFunction · 0.36
TestMetaFile_RemoveFileFunction · 0.36