MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / ExistFile

Method ExistFile

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

Source from the content-addressed store, hash-verified

117}
118
119func (this *FS) ExistFile(hash string) (bool, error) {
120 if this.isClosed {
121 return false, errors.New("the fs closed")
122 }
123
124 bFile, err := this.openBFileForHashReading(hash)
125 if err != nil {
126 return false, err
127 }
128 return bFile.ExistFile(hash), nil
129}
130
131func (this *FS) RemoveFile(hash string) error {
132 if this.isClosed {

Callers 2

TestFS_ExistFileFunction · 0.45
TestFS_RemoveFileFunction · 0.45

Calls 1

Tested by 2

TestFS_ExistFileFunction · 0.36
TestFS_RemoveFileFunction · 0.36