HISE Logo Forum
    • Categories
    • Register
    • Login

    A couple of zip file additions

    Scheduled Pinned Locked Moved Blog Entries
    zipfilearchiveextract
    4 Posts 3 Posters 191 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      While working on Rhapsody's downloader I was needing to know more about the zip files I'm extracting, so I've made a couple of additions to the scripting API.

      1. I've added File.getZippedItemList. This will return an array that contains the filenames of all files in the zip file (including within folders).

      2. I've added a ZipFile entry to the obj within the extractZip callback function. This contains the name of the zip file that is being unzipped.

      PR - https://github.com/christophhart/HISE/pull/688

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      orangeO 1 Reply Last reply Reply Quote 6
      • orangeO
        orange @d.healey
        last edited by

        @d-healey Great addition. So the user doesn’t need to have Winzip installed on his computer to unzip, right?

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        d.healeyD A 2 Replies Last reply Reply Quote 1
        • d.healeyD
          d.healey @orange
          last edited by d.healey

          @orange Correct, unzipping is built into every OS for a long time, so a user should never need WinZip unless they're on an ancient OS.

          Unzipping within HISE has been available for a few years now. Here's the docs - https://docs.hise.dev/scripting/scripting-api/file/index.html#extractzipfile

          I've just added a couple of additions to make some stuff I was doing a little easier and I think these will benefit other people too.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          1 Reply Last reply Reply Quote 0
          • A
            aaronventure @orange
            last edited by

            @orange no. Zip is integrated in the systems by default. Any other format and it's questionable.

            You could ship the 7zip exe if the license permits and call it with BackgroundTask.

            You can also use BackgroundTask to extract files if you're running into the size issues using the JUCE/HISE unzip method.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            20

            Online

            1.7k

            Users

            11.8k

            Topics

            102.7k

            Posts