Hi everyone,
I am currently struggling with the attempt of including graphics (tiff) from a zip archive. I did find several other discussions regarding this topic which seemed very promising, but I couldn't figure out a working syntax for my particular case.
Main issue I am dealing with right now is that all the discussions seem to have only one "layer" within the zip file (e.g. zip file with several text documents directly within). In my case, the graphics I am looking for are automatically zipped as a folder. Upon opening the zip file, I would have to navigate to said folder to actually retrieve the file list within (like [...]\filename.zip\foldername\graphics.tif). I mainly tried accessing it via different variations of this discussion as well as this post here. But whenever I try to generate a list of files within the zip file via "<<dir", it just gives back a blank list.
I tried so far to incorporate the sub folder within the open statement
za = open ("[...]\filename.zip\FolderName\", zip);
Show ( za << dir );using the opened zip file reference to navigate further down (I can't remember the actual syntax I tried, already deleted it) or reading out distinct graphic files by filename from both versions
za = open ("[...]\filename.zip\FolderName\", zip);
dat = za << Read( "graphics.tif", Format( blob ) ); or dat = za << Read( "folderName\graphics.tif", Format( blob ) );Is there a syntax to navigate a folder structure within a zip file? Or, alternatively, is there a possibility to incorporate some "recursive" statement whilst opening the zip file as to get all the files which are nested somewhere further down below?
I am looking forward for any input you can share.
Best regards
Malte