You can lookup an inode via a string path now
Removed DecompressCopy (as I wasn't using it) Started work on fragments
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
type Decompressor interface {
|
||||
Decompress(io.Reader) ([]byte, error)
|
||||
DecompressCopy(*io.Writer, *io.SectionReader) error
|
||||
}
|
||||
|
||||
type ZlibDecompressor struct{}
|
||||
@@ -25,15 +24,3 @@ func (z *ZlibDecompressor) Decompress(r io.Reader) ([]byte, error) {
|
||||
}
|
||||
return data.Bytes(), nil
|
||||
}
|
||||
|
||||
func (z *ZlibDecompressor) DecompressCopy(w *io.Writer, r *io.SectionReader) error {
|
||||
rdr, err := zlib.NewReader(r)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = io.Copy(*w, rdr)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user