anyone have any code to decompress a zip file into a virtual volume?
You won’t be able to use any of the operating system commands to manipulate files on virtual volumes, as they are private to your application. Unless Xojo says otherwise, I’d say your best bet would be to unzip to a temporary folder and copy the resulting folder into your virtual volume in code.
You could do this with http://www.tempel.org/RB/ZipPackage
They are proprietary classes but they are excellent. Even more powerful if you use Einhuger plugins.
It depends on how you’re unzipping the zip file; there are a number of ways to do it in Xojo but none are built-in. Here’s some code I posted to the old forums for unzipping using the (old and unmaintained but still working) RealZip plugin. Using that plugin and code, you ought to be able to just change the line
Dim tmp As FolderItem = SpecialFolder.Temporary.Child(name) to refer to a FolderItem in the VirtualVolume (e.g.
Dim tmp As FolderItem = MyVirtVolume.Root.Child(name))
I figured out how to use zip on mac os x from the command line… Did the trick for me…
however I’m now not sure what command line utility exists for rar files on mac os x.