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,
Announcement
Collapse
No announcement yet.
Language functions used for unzipping an untarring?
Collapse
X
-
Language functions used for unzipping an untarring?
Michael Brock
a viking, home port:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.vikingcoders.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=Tags: None
-
Re: Language functions used for unzipping an untarring?
Originally posted by MichaelBrockThe 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
Comment
Comment