Giter Site home page Giter Site logo

Comments (3)

alx52 avatar alx52 commented on June 3, 2024

I tried to solve it using version 4, but I couldn't find a way to unarchive

from archiver.

korpa avatar korpa commented on June 3, 2024

@mholt It would be really cool to have this feature. Any suggestions if it is possible already or if you will implement it?

from archiver.

mholt avatar mholt commented on June 3, 2024

Thanks for the feature request. I haven't tried this, but does the example from the README (slightly modified for embedded .tar.xz) not work? (v4)

format := archiver.CompressedArchive{
	Compression: archiver.Xz{},
	Archival:    archiver.Tar{},
}


handler := func(ctx context.Context, f archiver.File) error {
	// do something with the file
	return nil
}

err := format.Extract(ctx, bytes.NewReader(embeddedFile), nil, handler)
if err != nil {
	return err
}

Since I believe this can already work just fine, I will close this, but feel free to continue discussion and if something is not working we can reopen it.

from archiver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.