7zip a folder programatically using the C library

Help
2013-02-08
2013-02-08
  • Gajo Petrovic

    Gajo Petrovic - 2013-02-08

    How can I create a .7z file from a folder (or just some data) using the C part of the LZMA SDK?
    That is, how can I create a .7z file with the C LZMA SDK?
    I'm looking for functions that will 1) open a new .7z file 2) write data to a path in the .7z file and 3) close and save that file.
    I've used minizip and it was fairly straightforward, while I can't really figure out what to do with this SDK. Which files of the SDK should I be reading, is there no documentation/tutorial?
    Thanks in advance,
    Gajo Petrovic

     
  • Igor Pavlov

    Igor Pavlov - 2013-02-08

    C version of LZMA SDK doesn't support 7z archive creating. It supports only extracting from 7z archives.

    To create 7z archive, you must use C++ code from SDK.

     
  • Gajo Petrovic

    Gajo Petrovic - 2013-02-08

    Hey, Thanks for the answer!
    Bit of a shame it's not doable with the C API though.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks