~mrms/tarum

ede805d9b4f8fb0fd5e3e8fac5cfd4b5c0cd9217 — Marek Maškarinec 9 months ago 4ad2ec9
Update import paths
1 files changed, 8 insertions(+), 8 deletions(-)

M tar.um
M tar.um => tar.um +8 -8
@@ 1,7 1,7 @@
    
import (
    "pak/os/os.um"
    "pak/filepath/filepath.um"
    "umbox/os/os.um"
    "umbox/filepath/filepath.um"
    "std.um"
)



@@ 152,7 152,7 @@ fn main() {
        return
    }
    
    tar.addFile("pak.json")
    tar.addFile("umbox.json")
    tar.addFile("microtar/README.md")
    tar.addFile("tar_linux.umi")
    


@@ 186,14 186,14 @@ fn main() {
        printf("  %s\n", files[i].name)
    }
    
    printf("Reading pak.json:\n")
    var pakJson: []uint8
    pakJson, err = tar.read("pak.json")
    printf("Reading umbox.json:\n")
    var umboxJson: []uint8
    umboxJson, err = tar.read("umbox.json")
    if err != 0 {
        printf("Error reading pak.json: %s\n", strerror(err))
        printf("Error reading umbox.json: %s\n", strerror(err))
        return
    }
    printf("%s\n", str([]char(pakJson)))
    printf("%s\n", str([]char(umboxJson)))
        
    err = tar.extract("extracted")
    if err != 0 {