Close allows the FileRef to implement the io.Closer interface. It actually just performs what should be the final DecRef() call which takes the reference count to 0. Once 0, it allows the file to actually be closed.
()
| 119 | // just performs what should be the final DecRef() call which takes the |
| 120 | // reference count to 0. Once 0, it allows the file to actually be closed. |
| 121 | func (r *FileRef) Close() error { |
| 122 | return r.DecRef() |
| 123 | } |
| 124 | |
| 125 | // FetchRefCount fetches the ref-count on the file ref. |
| 126 | func (r *FileRef) FetchRefCount() int { |