Announcement

Collapse
No announcement yet.

Language functions used for unzipping an untarring?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Language functions used for unzipping an untarring?

    The skin .pkg files appear to be bzip-ed tarballs. The VM release notes mention a tar_create() function but nothing about functions to un-tar and un-zip. Can we get some details on what these functions are and how to use them? Thanks,
    Michael Brock
    a viking, home port:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    http://www.vikingcoders.com
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    #2
    Re: Language functions used for unzipping an untarring?

    Alex and Mark are both out sick today but I will ask them about this tomorrow.
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Language functions used for unzipping an untarring?

      Originally posted by MichaelBrock
      The skin .pkg files appear to be bzip-ed tarballs. The VM release notes mention a tar_create() function but nothing about functions to un-tar and un-zip. Can we get some details on what these functions are and how to use them? Thanks,

      Hi Michael,

      The two functions you'd use are tar_create and tar_extract.

      tar_create is accurate in our VM Release Notes. I'm not sure why our engine developer left out the extract function at the time.


      tar_extract( l.file_location, 'data', l.extract_to, 'script' )}">

      The first param is the location to your skin file
      The second is the location's starting path - 'data' or 'script'.
      The third is where you want to extract the contents.
      And the last is extract_to starting path - 'data' or 'script'.


      We'll make sure to fix our Release Notes in the next VM update.


      Thanks,

      Alex
      Alex Kruglyak
      Software Engineer
      Miva Small Business Solutions
      http://www.mivamerchant.com

      Comment


        #4
        Re: Language functions used for unzipping an untarring?

        Is their a way to unpack the .pkg file on a PC?
        Ray Yates
        "If I have seen further, it is by standing on the shoulders of giants."
        --- Sir Isaac Newton

        Comment


          #5
          Re: Language functions used for unzipping an untarring?

          Use bunzip2 to unpack the package.
          Alex Kruglyak
          Software Engineer
          Miva Small Business Solutions
          http://www.mivamerchant.com

          Comment

          Working...
          X