From dcb26057fac7354f39c3896291a26e8dccb13cfe Mon Sep 17 00:00:00 2001 From: Caleb Gardner Date: Wed, 25 Nov 2020 08:57:18 -0600 Subject: [PATCH] Updated README --- README.md | 15 +++++++++++---- squash_test.go | 9 +++------ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index acdd2e3..b74f53b 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,11 @@ Thanks also to [distri's squashfs library](https://github.com/distr1/distri/tree * Basic gzip compression (Shouldn't be too hard to implement other, but for right now, this works) * Listing all files via a string slice -# Not Working (Yet). Roughly in order. +# Not Working (Yet). Not necessarily in order. -* Reading the UID, GUID, Xatt, Compression Options, and Export tables. +* Rename repo so it's easier to import +* Provide an easy interface to find and list files and their properties + * Maybe squashfs.File * Extracting files * from inodes. * from file info. @@ -31,7 +33,12 @@ Thanks also to [distri's squashfs library](https://github.com/distr1/distri/tree * Implement other compression types (Should be relatively easy) * Squashing * Threading processes to speed them up +* Reasonable tests -# Where I'm at. +# TODO -* I FINALLY GOT FILE EXTRACTION WORKING!! \ No newline at end of file +* Go over all documentation again (especially for exported structs and functions) to make sure it's easy to understand. + +# Where I'm at + +* v0.1 is the first working version! \ No newline at end of file diff --git a/squash_test.go b/squash_test.go index 4c24ef9..b85d93d 100644 --- a/squash_test.go +++ b/squash_test.go @@ -1,7 +1,6 @@ package squashfs import ( - "fmt" "io" "net/http" "os" @@ -13,7 +12,7 @@ import ( const ( downloadURL = "https://github.com/zilti/code-oss.AppImage/releases/download/continuous/Code_OSS-x86_64.AppImage" appImageName = "Code_OSS.AppImage" - squashfsName = "testing.squashfs" + squashfsName = "Code_OSS.Squashfs" ) func TestMain(t *testing.T) { @@ -38,7 +37,7 @@ func TestMain(t *testing.T) { } //testing code to print out the directory structure // rdr.GetFileStructure() - extractionFil := "Proton-5.9-GE-8-ST.tar.gz" + extractionFil := "code-oss.desktop" os.Remove(wd + "/testing/" + extractionFil) desk, err := os.Create(wd + "/testing/" + extractionFil) if err != nil { @@ -48,10 +47,8 @@ func TestMain(t *testing.T) { if err != nil { t.Fatal(err) } - fmt.Println("Size!", ext.FileSize) - n, err := io.CopyBuffer(desk, ext, make([]byte, rdr.super.BlockSize/2)) + _, err = io.Copy(desk, ext) if err != nil { - fmt.Println("Read", n) t.Fatal(err) } t.Fatal("No problems here!")