Updated README
This commit is contained in:
@@ -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)
|
* Basic gzip compression (Shouldn't be too hard to implement other, but for right now, this works)
|
||||||
* Listing all files via a string slice
|
* 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
|
* Extracting files
|
||||||
* from inodes.
|
* from inodes.
|
||||||
* from file info.
|
* 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)
|
* Implement other compression types (Should be relatively easy)
|
||||||
* Squashing
|
* Squashing
|
||||||
* Threading processes to speed them up
|
* Threading processes to speed them up
|
||||||
|
* Reasonable tests
|
||||||
|
|
||||||
# Where I'm at.
|
# TODO
|
||||||
|
|
||||||
* I FINALLY GOT FILE EXTRACTION WORKING!!
|
* 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!
|
||||||
+3
-6
@@ -1,7 +1,6 @@
|
|||||||
package squashfs
|
package squashfs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@@ -13,7 +12,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
downloadURL = "https://github.com/zilti/code-oss.AppImage/releases/download/continuous/Code_OSS-x86_64.AppImage"
|
downloadURL = "https://github.com/zilti/code-oss.AppImage/releases/download/continuous/Code_OSS-x86_64.AppImage"
|
||||||
appImageName = "Code_OSS.AppImage"
|
appImageName = "Code_OSS.AppImage"
|
||||||
squashfsName = "testing.squashfs"
|
squashfsName = "Code_OSS.Squashfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMain(t *testing.T) {
|
func TestMain(t *testing.T) {
|
||||||
@@ -38,7 +37,7 @@ func TestMain(t *testing.T) {
|
|||||||
}
|
}
|
||||||
//testing code to print out the directory structure
|
//testing code to print out the directory structure
|
||||||
// rdr.GetFileStructure()
|
// rdr.GetFileStructure()
|
||||||
extractionFil := "Proton-5.9-GE-8-ST.tar.gz"
|
extractionFil := "code-oss.desktop"
|
||||||
os.Remove(wd + "/testing/" + extractionFil)
|
os.Remove(wd + "/testing/" + extractionFil)
|
||||||
desk, err := os.Create(wd + "/testing/" + extractionFil)
|
desk, err := os.Create(wd + "/testing/" + extractionFil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -48,10 +47,8 @@ func TestMain(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
fmt.Println("Size!", ext.FileSize)
|
_, err = io.Copy(desk, ext)
|
||||||
n, err := io.CopyBuffer(desk, ext, make([]byte, rdr.super.BlockSize/2))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Read", n)
|
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
t.Fatal("No problems here!")
|
t.Fatal("No problems here!")
|
||||||
|
|||||||
Reference in New Issue
Block a user