ZIP plugin OpenArchive on VirtualFile

Discuss about plugins that don't have a dedicated forum
Post Reply
User avatar
lazi
Posts: 627
Joined: Thu Feb 24, 2011 11:08 pm

ZIP plugin OpenArchive on VirtualFile

Post by lazi »

Trying to create a new zip archive in a virtual file (OS4). I did not succed.

Code: Select all

@REQUIRE "zip" 
virtfile$ = DefineVirtualFileFromString("","Archive.zip",True)
id = zip.OpenArchive(Nil, virtfile$, #MODE_WRITE)    
Error opening zip archive Archive.zip!
The docs does not say any limitation about this.

Bug or misuse?
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ZIP plugin OpenArchive on VirtualFile

Post by airsoftsoftwair »

lazi wrote: Wed Dec 20, 2023 11:47 pm Bug or misuse?
Bug. Apparently I have never implemented write support for virtual files because it's quite a lot of work so if you want to write zip files, you always have to use real files for the time being.
Post Reply