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:
Caleb Gardner
2020-11-27 00:36:21 -06:00
parent 8358cb2805
commit 23ec7ea6dd
4 changed files with 45 additions and 22 deletions
+3 -1
View File
@@ -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
}