Page 1 of 1

ZIP plugin OpenArchive on VirtualFile

Posted: Wed Dec 20, 2023 11:47 pm
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?

Re: ZIP plugin OpenArchive on VirtualFile

Posted: Sat Dec 23, 2023 9:51 pm
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.