(hash string)
| 117 | } |
| 118 | |
| 119 | func (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 | |
| 131 | func (this *FS) RemoveFile(hash string) error { |
| 132 | if this.isClosed { |