First version of File interface.
This will allow you to easily find and extract files. Extraction of whole folders coming next. (Maybe)
This commit is contained in:
+3
-1
@@ -59,7 +59,9 @@ func (r *Reader) newFileReader(in *inode.Inode) (*fileReader, error) {
|
||||
|
||||
//Close runs Close on the data reader and frees the fragmentdata
|
||||
func (f *fileReader) Close() error {
|
||||
f.data.Close()
|
||||
if f.data != nil {
|
||||
f.data.Close()
|
||||
}
|
||||
f.fragmentData = nil
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user