Using ZIP file system

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using ZIP file system

Juraj Kubelka
Hi,

Do I use the ZIP file system correctly? I do the following:

-=-=-=-
zipFile := FileLocator temp / 'file.zip'.
zipFileSystem := (FileSystem zip: zipFile) open.
(zipFileSystem root / 'dir1') createDirectory.
(zipFileSystem root / 'dir1' / 'file.txt')
        writeStreamDo: [ :stream | stream << 'Hello World!' ].
zipFileSystem close.
zipFile contents.
-=-=-=-

And zipFileSystem close produces an error.
 


Thanks for any advice.
Juraj


stack.txt (1K) Download Attachment