NEW ISSUES
This commit is contained in:
+3
-3
@@ -290,9 +290,9 @@ func TestSTUFF(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
os.Remove(wd + "/testing/test.xml")
|
||||
testOut, _ := os.Create(wd + "/testing/test.xml")
|
||||
testFil, err := rdr.Open("PortableApps/Notepad++Portable/App/Notepad++64/functionList/cobol-free.xml")
|
||||
os.Remove(wd + "/testing/test.ini")
|
||||
testOut, _ := os.Create(wd + "/testing/test.ini")
|
||||
testFil, err := rdr.Open("Documents/Pictures/Desktop.ini")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package inode
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
)
|
||||
@@ -36,6 +37,7 @@ type EFile struct {
|
||||
func ReadFile(r io.Reader, blockSize uint32) (f File, err error) {
|
||||
err = binary.Read(r, binary.LittleEndian, &f.fileInit)
|
||||
if err != nil {
|
||||
fmt.Println("Hi")
|
||||
return
|
||||
}
|
||||
f.BlockSizes = make([]uint32, int(math.Ceil(float64(f.Size)/float64(blockSize))))
|
||||
|
||||
+1
-2
@@ -73,8 +73,7 @@ func TestExtractQuick(t *testing.T) {
|
||||
}
|
||||
op := squashfs.DefaultOptions()
|
||||
op.Verbose = true
|
||||
sub, _ := rdr.Sub("PortableApps/Notepad++Portable/App/Notepad++64/functionList")
|
||||
err = sub.(*squashfs.FS).ExtractWithOptions(libPath, op)
|
||||
err = rdr.ExtractWithOptions(libPath, op)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user