Working on a better API to interact with squashfs

New API uses a File that can hold more information.
This commit is contained in:
Caleb Gardner
2020-11-26 03:47:44 -06:00
parent 77222f55f5
commit 9471b93ead
6 changed files with 150 additions and 65 deletions
+5 -3
View File
@@ -43,9 +43,11 @@ func TestMain(t *testing.T) {
if err != nil {
t.Fatal(err)
}
ext, err := rdr.ReadFile(extractionFil)
if err != nil {
t.Fatal(err)
ext := rdr.FindFile(func(fil *File) bool {
return fil.Name == extractionFil
})
if ext == nil {
t.Fatal("Cannot find file")
}
_, err = io.Copy(desk, ext)
if err != nil {